From: "zzak (Zachary Scott)" Date: 2012-12-14T01:28:05+09:00 Subject: [ruby-core:50879] [ruby-trunk - Bug #7558] Small docs bug for Regexp::union Issue #7558 has been updated by zzak (Zachary Scott). For what it's worth, here is the original patch: https://github.com/ruby/ruby/commit/cf9bdd0 Not sure what revision that is though. And seeing as how it was originally committed 5 years ago, I'm surprised this bug still exists. Steve, only documentation I found on backporting: https://bugs.ruby-lang.org/projects/ruby/wiki/HowToBackport ---------------------------------------- Bug #7558: Small docs bug for Regexp::union https://bugs.ruby-lang.org/issues/7558#change-34712 Author: alex_gaynor (Alex Gaynor) Status: Open Priority: Normal Assignee: Category: DOC Target version: ruby -v: ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin12.2.0] 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. -- http://bugs.ruby-lang.org/