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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
test([nav-tabbed-page-coverage-guard-post]): anchor switch-default regex with a word boundary
[._.]/ Adam Eivydde6096dd5c7
diff --git a/server/lib/navManifest.test.js b/server/lib/navManifest.test.jsindex 0bd1e12c50..44ceaa2d90 100644--- a/server/lib/navManifest.test.js+++ b/server/lib/navManifest.test.js@@ -53,7 +53,7 @@ function extractConstArrayBlock(src, constName) {// case. Assumes the file's `switch (<switchVar>)` is the only one (cases are read to// EOF); a second switch would loudly fold its cases in rather than fail silently.function extractSwitchTabs(src, switchVar) {- const def = src.match(new RegExp(`${switchVar}\\s*=\\s*['"]([^'"]+)['"]`));+ const def = src.match(new RegExp(`\\b${switchVar}\\s*=\\s*['"]([^'"]+)['"]`));if (!def) throw new Error(`No destructuring default for "${switchVar}" found`);const block = src.match(new RegExp(`switch\\s*\\(\\s*${switchVar}\\s*\\)\\s*\\{([\\s\\S]*)`));if (!block) throw new Error(`No switch (${switchVar}) found`);