Ruby Issue Tracking System: Issueshttps://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112012-12-14T00:26:57ZRuby Issue Tracking System
Redmine Backport193 - Backport #7558 (Third Party's Issue): Small docs bug for Regexp::unionhttps://bugs.ruby-lang.org/issues/75582012-12-14T00:26:57Zalex_gaynor (Alex Gaynor)alex.gaynor@gmail.com
<p>The docs for Regexp::union (<a href="http://ruby-doc.org/core-1.9.3/Regexp.html#method-c-union" class="external">http://ruby-doc.org/core-1.9.3/Regexp.html#method-c-union</a>) state:</p>
<p>Regexp.union(/dogs/, /cats/) #=> /(?-mix:dogs)|(?i-mx:cats)/</p>
<p>This is, however, incorrect, /cats/ doesn't have the /i flag, either it should be added or the expected result should be changed.</p>