diff options
author | Kazuhiro NISHIYAMA <[email protected]> | 2019-11-21 23:10:30 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <[email protected]> | 2019-11-21 23:10:30 +0900 |
commit | 88d6009d91c197049da9d6efeb406aec5eb5d551 (patch) | |
tree | aa2f0197bdc6e28e0f5bb556034674f9e0527e32 /lib/irb.rb | |
parent | ffab1bfdfcb9f1448c063e93f04209c90327ad9c (diff) |
Use more strict regexp to avoid to match naninanirb.rb
Diffstat (limited to 'lib/irb.rb')
-rw-r--r-- | lib/irb.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb.rb b/lib/irb.rb index ed91d29b91..cbf717d560 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -553,7 +553,7 @@ module IRB end def handle_exception(exc) - if exc.backtrace && exc.backtrace[0] =~ /irb(2)?(\/.*|-.*|\.rb)?:/ && exc.class.to_s !~ /^IRB/ && + if exc.backtrace && exc.backtrace[0] =~ /\/irb(2)?(\/.*|-.*|\.rb)?:/ && exc.class.to_s !~ /^IRB/ && !(SyntaxError === exc) irb_bug = true else |