Actions
Backport #7558
closedSmall docs bug for Regexp::union
Status:
Third Party's Issue
Assignee:
Description
The docs for Regexp::union (http://ruby-doc.org/core-1.9.3/Regexp.html#method-c-union) state:
Regexp.union(/dogs/, /cats/) #=> /(?-mix:dogs)|(?i-mx:cats)/
This is, however, incorrect, /cats/ doesn't have the /i flag, either it should be added or the expected result should be changed.
Actions
Like0
Like0Like0Like0Like0