Actions
Bug #21558
closedRegexp.union with multiple regexps returns a non-shareable object (should be shareable if possible)
Bug #21558:
Regexp.union with multiple regexps returns a non-shareable object (should be shareable if possible)
Status:
Feedback
Assignee:
-
Target version:
-
ruby -v:
ruby 3.5.0dev (2025-08-30T18:24:25Z master 5c7dfe85a1) +PRISM [arm64-darwin24]
Description
Regexp.union returns a non-shareable object when given multiple Regex arguments. Is this expected behavior?
It would be preferable if the resulting Regexp were shareable, since single-argument Regexp.union does produce a shareable object.
Actions