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 | afa2732b784aaac7800ba03d5617d5d395964149 (patch) | |
tree | a556f443b098c6ea4e15dcb3eed0629c967834ba | |
parent | f54418b71f57e00d4a50bd86bf7d18b8b5195287 (diff) |
eban
git-svn-id: svn+ssh://ci.ruby-lang.org/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 3ce692fc50..e566f96f60 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 |