Actions
Bug #14608
closedRegexp::union and forward slashes
Description
When using Regexp::union and a regular expression with a forward slash, there seem to be some inconsistencies.
# this is weird
Regexp.union(/\//, '') # => /(?-mix:\/)|/
Regexp.union(/\//, '') == /(?-mix:\/)|/ # => false
# here is the difference
Regexp.union(/\//, '').source # => "(?-mix:\\/)|"
/(?-mix:\/)|/.source # => "(?-mix:/)|"
Previously reported at https://github.com/janosch-x/js_regex/issues/6
Actions
Like0
Like0Like0