Ignore rounded-none in border accents

AI-assisted change.
This commit is contained in:
Paul Bakaus
2026-07-29 14:28:15 -07:00
parent 6c1aff7d1f
commit 872c032582
2 changed files with 18 additions and 1 deletions
+2 -1
View File
@@ -12,7 +12,8 @@ import { profileFindings, profileStep } from '../../profile/profiler.mjs';
// Regex fallback (non-HTML files: CSS, JSX, TSX, etc.)
// ---------------------------------------------------------------------------
const hasRounded = (line) => /\brounded(?:-\w+)?\b/.test(line);
const hasRounded = (line) =>
/\brounded(?:-\w+)?\b/.test(line.replace(/\brounded-none\b/g, ''));
const hasBorderRadius = (line) => /border-radius/i.test(line);
const isSafeElement = (line) => /<(?:blockquote|nav[\s>]|pre[\s>]|code[\s>]|a\s|input[\s>]|span[\s>])/i.test(line);