summaryrefslogtreecommitdiff
path: root/ext/syck
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-02 22:22:26 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-02 22:22:26 +0000
commitb93c74c6e844282a7bc72ace9b46011ebca16743 (patch)
tree8c839fc47cf0763bff8a5aed74c3cf05d528af87 /ext/syck
parent89ef6628ebad27dab097f0c0d09ec50637cdab4b (diff)
* ext/psych/lib/psych/visitors/to_ruby.rb: use Regexp::NOENCODING
rather than magic number. * ext/syck/lib/syck/rubytypes.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck')
-rw-r--r--ext/syck/lib/syck/rubytypes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/syck/lib/syck/rubytypes.rb b/ext/syck/lib/syck/rubytypes.rb
index 883c8d5bfc..31b1e2b804 100644
--- a/ext/syck/lib/syck/rubytypes.rb
+++ b/ext/syck/lib/syck/rubytypes.rb
@@ -271,7 +271,7 @@ class Regexp
mods |= Regexp::EXTENDED if val['mods'].include?( 'x' )
mods |= Regexp::IGNORECASE if val['mods'].include?( 'i' )
mods |= Regexp::MULTILINE if val['mods'].include?( 'm' )
- mods |= 32 if val['mods'].include?( 'n' )
+ mods |= Regexp::NOENCODING if val['mods'].include?( 'n' )
end
val.delete( 'mods' )
r = YAML::object_maker( klass, {} )