Optparse passes incorrect options when casting to a Regexp #82

Closed
wants to merge 2 commits into
from
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Diff settings

Always

Just for now

View
@@ -1709,7 +1709,7 @@ def environment(env = File.basename($0, '.*'))
f |= Regexp::IGNORECASE if /i/ =~ o
f |= Regexp::MULTILINE if /m/ =~ o
f |= Regexp::EXTENDED if /x/ =~ o
- k = o.delete("^imx")
+ k = o.delete("imx")
end
Regexp.new(s || all, f, k)
end