Fix per-instance Regexp timeout (#6621)
Fix per-instance Regexp timeout
This makes it follow what was decided in [Bug #19055]:
Regexp.new(str, timeout: nil)
Regexp.new(str, timeout: huge_val)
Regexp.new(str, timeout: 0 or negative value)
Fix per-instance Regexp timeout (#6621)
Fix per-instance Regexp timeout
This makes it follow what was decided in [Bug #19055]:
Regexp.new(str, timeout: nil)
should respect the global timeoutRegexp.new(str, timeout: huge_val)
should use the maximum value thatcan be represented in the internal representation
Regexp.new(str, timeout: 0 or negative value)
should raise an error