From afa2732b784aaac7800ba03d5617d5d395964149 Mon Sep 17 00:00:00 2001 From: eban Date: Mon, 4 Dec 2000 15:03:56 +0000 Subject: [PATCH] eban git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ lib/jcode.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2d8a105211..13238e43a1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Dec 4 13:44:01 2000 WATANABE Hirofumi + + * lib/jcode.rb: consider multibyte. not /n. + Mon Nov 27 17:00:35 2000 Yukihiro Matsumoto * 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