diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-21 15:13:23 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-21 15:13:23 +0000 |
commit | d05305eb3b357a62359e45cfacfbc963e8414c9b (patch) | |
tree | 0ed5f63dd297a8bcc2dc5fa5e35b3e84a19a6ca2 /lib/debug.rb | |
parent | 82ced3bcc6c15fb1bd29fd69cc05266f301a7073 (diff) | |
download | ruby-d05305eb3b357a62359e45cfacfbc963e8414c9b.tar.gz ruby-d05305eb3b357a62359e45cfacfbc963e8414c9b.tar.xz ruby-d05305eb3b357a62359e45cfacfbc963e8414c9b.zip |
* regex.c (re_compile_pattern): fix previous change.
* instruby.rb, ext/extmk.rb, ext/tk/lib/tk.rb, lib/benchmark.rb,
lib/cgi.rb, lib/debug.rb, lib/getoptlong.rb, lib/jcode.rb,
lib/optparse.rb, lib/time.rb, lib/date/format.rb,
lib/irb/ruby-lex.rb: escape `[', `]', `-' in chracter class in
regexp to avoid warning.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/debug.rb')
-rw-r--r-- | lib/debug.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/debug.rb b/lib/debug.rb index 8f2999a3a..9d49fafac 100644 --- a/lib/debug.rb +++ b/lib/debug.rb @@ -425,7 +425,7 @@ class Context b = previous_line ? previous_line - 10 : binding_line - 5 e = b + 9 else - b, e = $1.split(/[-,]/) + b, e = $1.split(/[\-,]/) if e b = b.to_i e = e.to_i |