Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: use the explicit any-char class so the a11y guard regexes pass biome

Adam Eivy3f89e38ae1b4
diff --git a/client/src/a11yConventions.test.js b/client/src/a11yConventions.test.js
index 7836a8bcff..994b0749c0 100644
--- a/client/src/a11yConventions.test.js
+++ b/client/src/a11yConventions.test.js
@@ -179,7 +179,7 @@ function matchTernaryIcons(inner) {
if (cIdx === -1) return false;
const a = inner.slice(qIdx + 1, cIdx).trim();
const b = inner.slice(cIdx + 1).trim();
- const iconRe = /^<[A-Z][\w.]*(\s[^]*)?\/>$/;
+ const iconRe = /^<[A-Z][\w.]*(\s[\s\S]*)?\/>$/;
return iconRe.test(a) && iconRe.test(b);
}
@@ -207,9 +207,9 @@ function isIconOnlyBody(rawBodyIn) {
if (node.kind === 'element') return node.selfClosing && /^<[A-Z]/.test(node.raw);
const inner = node.inner;
if (matchTernaryIcons(inner)) return true;
- const andMatch = inner.match(/^.*&&\s*(<[A-Z][\w.]*(\s[^]*)?\/>)\s*$/s);
+ const andMatch = inner.match(/^.*&&\s*(<[A-Z][\w.]*(\s[\s\S]*)?\/>)\s*$/s);
if (!andMatch) return false;
- return /^<[A-Z][\w.]*(\s[^]*)?\/>$/.test(andMatch[1].trim());
+ return /^<[A-Z][\w.]*(\s[\s\S]*)?\/>$/.test(andMatch[1].trim());
}
// Buttons don't nest in valid HTML/JSX, so the first `</button>` after the