Actions
Bug #20084
closedBreaking change with Regexp.new on 3.3.0
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-linux]
Description
Regexp.new used to take up to 3 arguments, but now only 1..2 are allowed:
[1] pry(main)> Regexp.new 'abc', 'i', 'n'
ArgumentError: wrong number of arguments (given 3, expected 1..2)
from (pry):1:in `initialize'
On 3.2.2:
[1] pry(main)> Regexp.new 'abc', 'i', 'n'
=> /abc/in
Actions
Like0
Like0Like0Like0Like0