From 91652395474a908471a7e892c5e9be9afa90031b Mon Sep 17 00:00:00 2001 From: Denis Ah-Kang Date: Mon, 10 Jul 2023 11:07:33 +0400 Subject: [PATCH] normalize a.textContent before check --- lib/rules/sotd/new-features.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rules/sotd/new-features.js b/lib/rules/sotd/new-features.js index 7d56e33ab..0540948bf 100644 --- a/lib/rules/sotd/new-features.js +++ b/lib/rules/sotd/new-features.js @@ -24,7 +24,7 @@ export function check(sr, done) { if (sotd && sr.norm(sotd.textContent).match(warning)) { const foundLink = Array.prototype.some.call( sotd.querySelectorAll('a'), - a => a.textContent === linkTxt && a.href === linkHref + a => sr.norm(a.textContent) === linkTxt && a.href === linkHref ); if (!foundLink) { sr.error(self, 'no-link');