From acf424908d0e556e75a2cab49b1dee18549a81e1 Mon Sep 17 00:00:00 2001
From: David Sveningsson <ext@sidvind.com>
Date: Sun, 27 Mar 2022 03:48:24 +0200
Subject: [PATCH] fix(rules): better error message for `attr-delimiter`

---
 src/rules/__snapshots__/attr-delimiter.spec.ts.snap | 2 +-
 src/rules/attr-delimiter.ts                         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/rules/__snapshots__/attr-delimiter.spec.ts.snap b/src/rules/__snapshots__/attr-delimiter.spec.ts.snap
index 3657d5f24..794ef0d25 100644
--- a/src/rules/__snapshots__/attr-delimiter.spec.ts.snap
+++ b/src/rules/__snapshots__/attr-delimiter.spec.ts.snap
@@ -2,7 +2,7 @@
 
 exports[`rule attr-delimiter should contain documentation 1`] = `
 Object {
-  "description": "Attribute value should be separated by ",
+  "description": "Attribute value must not be separated by whitespace.",
   "url": "https://html-validate.org/rules/attr-delimiter.html",
 }
 `;
diff --git a/src/rules/attr-delimiter.ts b/src/rules/attr-delimiter.ts
index 6fd299470..5c39c2d5e 100644
--- a/src/rules/attr-delimiter.ts
+++ b/src/rules/attr-delimiter.ts
@@ -12,7 +12,7 @@ function isRelevant(event: TokenEvent): boolean {
 export default class AttrDelimiter extends Rule {
 	public documentation(): RuleDocumentation {
 		return {
-			description: `Attribute value should be separated by `,
+			description: `Attribute value must not be separated by whitespace.`,
 			url: ruleDocumentationUrl(__filename),
 		};
 	}
-- 
GitLab