diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-12-04 15:03:56 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-12-04 15:03:56 +0000 |
commit | b5ca10fe8729f9baa63b47e306690428ed6e35cc (patch) | |
tree | a556f443b098c6ea4e15dcb3eed0629c967834ba | |
parent | 5c51be814dcde70b7f1ba3db96084bb1ad6483d0 (diff) | |
download | ruby-b5ca10fe8729f9baa63b47e306690428ed6e35cc.tar.gz ruby-b5ca10fe8729f9baa63b47e306690428ed6e35cc.tar.xz ruby-b5ca10fe8729f9baa63b47e306690428ed6e35cc.zip |
eban
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/jcode.rb | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Mon Dec 4 13:44:01 2000 WATANABE Hirofumi <eban@ruby-lang.org> + + * lib/jcode.rb: consider multibyte. not /n. + Mon Nov 27 17:00:35 2000 Yukihiro Matsumoto <matz@ruby-lang.org> * eval.c (rb_eval): should not redefine builtin classes/modules diff --git a/lib/jcode.rb b/lib/jcode.rb index 3ce692fc5..e566f96f6 100644 --- a/lib/jcode.rb +++ b/lib/jcode.rb @@ -5,7 +5,7 @@ class String printf STDERR, "feel free for some warnings:\n" if $VERBOSE def _regex_quote(str) - str.gsub(/[][.\\|*?+{}()]/n){|s| + str.gsub(/[][.\\|*?+{}()]/){|s| if s == "\\" then "\\\\" else "\\\\#{s}" end } end |