mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f54418b71f
commit
afa2732b78
2 changed files with 5 additions and 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>
|
Mon Nov 27 17:00:35 2000 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* eval.c (rb_eval): should not redefine builtin classes/modules
|
* eval.c (rb_eval): should not redefine builtin classes/modules
|
||||||
|
|
|
@ -5,7 +5,7 @@ class String
|
||||||
printf STDERR, "feel free for some warnings:\n" if $VERBOSE
|
printf STDERR, "feel free for some warnings:\n" if $VERBOSE
|
||||||
|
|
||||||
def _regex_quote(str)
|
def _regex_quote(str)
|
||||||
str.gsub(/[][.\\|*?+{}()]/n){|s|
|
str.gsub(/[][.\\|*?+{}()]/){|s|
|
||||||
if s == "\\" then "\\\\" else "\\\\#{s}" end
|
if s == "\\" then "\\\\" else "\\\\#{s}" end
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue