From ceb21a7c1ffd7b705c17ee3435c47641324aa2f7 Mon Sep 17 00:00:00 2001 From: Dicken Date: Fri, 5 Jun 2026 01:06:42 +0200 Subject: [PATCH] Fix Build: ungueltige Regex in DevTools-Nav durch String-Spread ersetzt --- frontend/src/tools/devtools.jsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/frontend/src/tools/devtools.jsx b/frontend/src/tools/devtools.jsx index f736fe4..b478198 100644 --- a/frontend/src/tools/devtools.jsx +++ b/frontend/src/tools/devtools.jsx @@ -3095,12 +3095,9 @@ export default function DevTools({ toast, mobile }) { const active = TOOL_DEFS.find(t=>t.id===activeTool); const ActiveComp = active?.tabs ? active.components[activeTab] : active?.component; - // Emoji/Icon aus Label extrahieren - const getIcon = lbl => { - const m = lbl.match(/^([\u{1F300}-\u{1FFFF}\u{2600}-\u{27BF}⏱⚡📅🎨🔐🔍🌐◻±{}]/u); - return m ? m[0] : lbl[0]; - }; - const getText = lbl => lbl.replace(/^[\u{1F300}-\u{1FFFF}\u{2600}-\u{27BF}⏱⚡📅🎨🔐🔍🌐◻±{}]\s*/u,'').trim() || lbl; + // Erstes Zeichen als Icon, Rest als Text (handles Emoji korrekt via spread) + const getIcon = lbl => [...lbl][0] ?? '🔧'; + const getText = lbl => { const c=[...lbl]; return c.slice(1).join('').trim() || lbl; }; return (