Actions
Bug #11399
closedRegexp's free-spacing mode adding whitespace to character classes
Bug #11399: Regexp's free-spacing mode adding whitespace to character classes
Description
The free-spacing mode (x-option) does not ignore whitespace within character classes:
r = /[a # comment b]/x " \nab".scan(r) #=> [" ", "\n", "a", "b"] I would expect a regular expression that's equivalent to /[ab]/
Actions