Skip to content

Commit f47c3cb

Browse files
committed
Fix regexp in tool/parse_mri_errors.rb
* The test description might contain spaces.
1 parent 193bdaa commit f47c3cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tool/parse_mri_errors.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
repo_root = File.expand_path("../..", __FILE__)
4949
excludes = "#{repo_root}/test/mri/excludes"
5050

51-
t = /((?:\w+::)?\w+)#(\S+)(?:\s*\[.+\])?:$/
51+
t = /((?:\w+::)?\w+)#(.+?)(?:\s*\[(?:[^\]])+\])?:$/
5252
contents.scan(t) do |class_name, test_method, result|
5353
file = excludes + "/" + class_name.split("::").join('/') + ".rb"
5454
unless result == "."

0 commit comments

Comments
 (0)