Skip to content

Commit 619390d

Browse files
authored
add exception for all the CSS errors reported by the validator.nu (#1610)
1 parent 9f74746 commit 619390d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/exceptions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Exceptions.prototype.has = function (shortname, rule, key, extra) {
5252
(!exception.message &&
5353
compareValue(extra.type, exception.type)) ||
5454
(exception.message &&
55-
compareValue(extra.message, exception.message)))
55+
new RegExp(exception.message).test(extra.message)))
5656
) {
5757
return true;
5858
}

lib/exceptions.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"rule": "validation.html",
55
"type": "noexistence-at-all",
6-
"message": "CSS: “caret-shape”: Property “caret-shape” doesn't exist."
6+
"message": "^CSS: .*$"
77
},
88
{
99
"rule": "validation.html",

0 commit comments

Comments
 (0)