Skip to content

Commit f089ba2

Browse files
committed
Improve regexp in Exception#backtrace spec
1 parent d5fb6c1 commit f089ba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/ruby/core/exception/backtrace_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
# This regexp is deliberately imprecise to account for the need to abstract out
4444
# the paths of the included mspec files and the desire to avoid specifying in any
4545
# detail what the in `...' portion looks like.
46-
line.should =~ /^[^ ]+\:\d+(:in `[^`]+')?$/
46+
line.should =~ /^.+:\d+:in `[^`]+'$/
4747
end
4848
end
4949

0 commit comments

Comments
 (0)