Fix Build: ungueltige Regex in DevTools-Nav durch String-Spread ersetzt

This commit is contained in:
2026-06-05 01:06:42 +02:00
parent 66a4b6b823
commit ceb21a7c1f

View File

@@ -3095,12 +3095,9 @@ export default function DevTools({ toast, mobile }) {
const active = TOOL_DEFS.find(t=>t.id===activeTool); const active = TOOL_DEFS.find(t=>t.id===activeTool);
const ActiveComp = active?.tabs ? active.components[activeTab] : active?.component; const ActiveComp = active?.tabs ? active.components[activeTab] : active?.component;
// Emoji/Icon aus Label extrahieren // Erstes Zeichen als Icon, Rest als Text (handles Emoji korrekt via spread)
const getIcon = lbl => { const getIcon = lbl => [...lbl][0] ?? '🔧';
const m = lbl.match(/^([\u{1F300}-\u{1FFFF}\u{2600}-\u{27BF}⏱⚡📅🎨🔐🔍🌐◻±{}]/u); const getText = lbl => { const c=[...lbl]; return c.slice(1).join('').trim() || lbl; };
return m ? m[0] : lbl[0];
};
const getText = lbl => lbl.replace(/^[\u{1F300}-\u{1FFFF}\u{2600}-\u{27BF}⏱⚡📅🎨🔐🔍🌐◻±{}]\s*/u,'').trim() || lbl;
return ( return (
<div style={{padding:mobile?'14px 14px 90px':'36px 44px',maxWidth:860}}> <div style={{padding:mobile?'14px 14px 90px':'36px 44px',maxWidth:860}}>