Skip to content

Commit 1b7851e

Browse files
committed
you know what they say about regular expressions…
1 parent 59773b9 commit 1b7851e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Support/validate.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,8 @@ def validate(quiet=False):
295295

296296
# parse the results
297297

298-
rx = re.compile('^[^:]+\\: line (?P<line>\\d+), ' +
299-
'col (?P<character>\\d+), ' +
300-
'(?P<code>\\w+) - (?P<reason>.+)\\s?(\\((?P<shortname>\\w+)\\))?$')
298+
rx = re.compile('^[^:]+\: line (?P<line>\d+), col (?P<character>\d+), ' +
299+
'(?P<code>\w+) - (?P<reason>.+?)(\s\((?P<shortname>[\w\-]+)\))?$')
301300

302301
issues = []
303302

0 commit comments

Comments
 (0)