Skip to content

Commit 89522b7

Browse files
committed
Dangerfile: don't fail on parsing html5validator warnings.
1 parent be8d102 commit 89522b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dangerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ else
372372
errors_count += 1
373373
line.sub!(/^WARNING:html5validator.validator:/, '')
374374

375-
parsed = line.match(/^"file:(?<file>[^"]+)":(?<line>\d+)[^:]+: error: (?<msg>.+)/)
375+
parsed = line.match(/^"file:(?<file>[^"]+)":(?<line>\d+)[^:]+: (error|info warning): (?<msg>.+)/)
376376
msg = parsed['msg'].sub(/\.$/, '')
377377
file = parsed['file'].sub(pwd, '')
378378
lineno = parsed['line']

0 commit comments

Comments
 (0)