diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-20 20:26:06 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-20 20:26:06 +0000 |
commit | 6ac1d39acec4ccb01cca219e30d2ba4b3547a9e3 (patch) | |
tree | d28fdf08351dcaa076db45945e170ae624cf5ab0 /re.c | |
parent | edd67a6844b25ba5031be59daecd0aef0b8e954b (diff) |
* re.c (rb_reg_initialize_m): Forgot to update output for or'd-options
example.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2888,10 +2888,10 @@ rb_reg_match_m(int argc, VALUE *argv, VALUE re) * * When the +lang+ parameter is `n' or `N' sets the regexp no encoding. * - * r1 = Regexp.new('^a-z+:\\s+\w+') #=> /^a-z+:\s+\w+/ - * r2 = Regexp.new('cat', true) #=> /cat/i - * r3 = Regexp.new(r2) #=> /cat/i - * r4 = Regexp.new('dog', Regexp::EXTENDED | Regexp::IGNORECASE) #=> /dog/x + * r1 = Regexp.new('^a-z+:\\s+\w+') #=> /^a-z+:\s+\w+/ + * r2 = Regexp.new('cat', true) #=> /cat/i + * r3 = Regexp.new(r2) #=> /cat/i + * r4 = Regexp.new('dog', Regexp::EXTENDED | Regexp::IGNORECASE) #=> /dog/ix */ static VALUE |