I noticed a bug when working with very long regexps (around 32000 chars).
A simple regexp like /hello|AAAAAAAA/ does not match "hello" anymore when the number of "A"s is
greater than 32258.
Usually, when a regexp is too long to be managed, Ruby issues a "regular expression too big" exception, but
in this case it just stops working correctly, without any warning.
A test case is attached.
The bug has been verified on both Windows and Mac OSX. |