Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Respect Regexp.compile method signature
As far as I can tell, Regexp.compile has never accepted a third parameter to Regexp.compile until Ruby 3.2. There it actually is a timeout parameter. In older versions it was discarded as an invalid input. It's unclear to me if this parameter ever worked in the first place. This PR attemps to still make it work as it was originally intended, but it's unclear what the original goal even was.
- Loading branch information