From e365c4378191f1aa5eff8889f0614256461d55e0 Mon Sep 17 00:00:00 2001 From: Dmitry Popov Date: Sun, 13 Oct 2024 14:09:53 +0400 Subject: [PATCH] feat(Map): Link signature on splash --- .../components/SystemSettingsDialog/SystemSettingsDialog.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/hooks/Mapper/components/mapInterface/components/SystemSettingsDialog/SystemSettingsDialog.tsx b/assets/js/hooks/Mapper/components/mapInterface/components/SystemSettingsDialog/SystemSettingsDialog.tsx index a82d6e0d..7ceddf4c 100644 --- a/assets/js/hooks/Mapper/components/mapInterface/components/SystemSettingsDialog/SystemSettingsDialog.tsx +++ b/assets/js/hooks/Mapper/components/mapInterface/components/SystemSettingsDialog/SystemSettingsDialog.tsx @@ -90,7 +90,7 @@ export const SystemSettingsDialog = ({ systemId, visible, setVisible }: SystemSe }, []); const handleInput = useCallback((e: any) => { - e.target.value = e.target.value.toUpperCase().replace(/[^A-Z0-9]/g, ''); + e.target.value = e.target.value.toUpperCase().replace(/[^A-Z0-9[\](){}]/g, ''); }, []); return ( @@ -160,7 +160,7 @@ export const SystemSettingsDialog = ({ systemId, visible, setVisible }: SystemSe aria-describedby="label" autoComplete="off" value={label} - maxLength={3} + maxLength={5} onChange={e => setLabel(e.target.value)} onInput={handleInput} />