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
refactor: reuse the shared escapeRegExp in the host-control route list (#8716)
[._.]/ Adam Eivyccf61169a2d4
diff --git a/server/lib/hostControlRoutes.js b/server/lib/hostControlRoutes.jsindex dd1b5c2a41..e95e5a1ca0 100644--- a/server/lib/hostControlRoutes.js+++ b/server/lib/hostControlRoutes.js@@ -27,6 +27,8 @@* listed handler by a spelling this list does not match.*/+import { escapeRegExp } from './textUtils.js';+export const HOST_CONTROL_ROUTES = Object.freeze([// Apps: create/edit choose the repo path and the start/build commands; the// lifecycle and launch routes run them under PM2 or the native launcher.@@ -98,8 +100,6 @@ export const HOST_CONTROL_ROUTES = Object.freeze(['POST /api/standardize/backup',]);-const escapeRegExp = (text) => text.replace(/[.+?^${}()|[\]\\]/g, '\\$&');-const compileSegment = (segment) => {if (segment.startsWith(':')) return '[^/]+';if (segment.startsWith('*')) return '.+';