From 619390dcaff3ef229605e9c59074ebabfb40c3e4 Mon Sep 17 00:00:00 2001 From: Denis Ah-Kang Date: Thu, 23 Jun 2022 10:02:30 +0400 Subject: [PATCH] add exception for all the CSS errors reported by the validator.nu (#1610) --- lib/exceptions.js | 2 +- lib/exceptions.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/exceptions.js b/lib/exceptions.js index 0f482b770..24c1f69f8 100644 --- a/lib/exceptions.js +++ b/lib/exceptions.js @@ -52,7 +52,7 @@ Exceptions.prototype.has = function (shortname, rule, key, extra) { (!exception.message && compareValue(extra.type, exception.type)) || (exception.message && - compareValue(extra.message, exception.message))) + new RegExp(exception.message).test(extra.message))) ) { return true; } diff --git a/lib/exceptions.json b/lib/exceptions.json index 6f55235ab..ede95b9f9 100644 --- a/lib/exceptions.json +++ b/lib/exceptions.json @@ -3,7 +3,7 @@ { "rule": "validation.html", "type": "noexistence-at-all", - "message": "CSS: “caret-shape”: Property “caret-shape” doesn't exist." + "message": "^CSS: .*$" }, { "rule": "validation.html",