diff --git a/frontend/src/basic/SettingsPage/index.tsx b/frontend/src/basic/SettingsPage/index.tsx index 26d4fa3c9..f1a004e83 100644 --- a/frontend/src/basic/SettingsPage/index.tsx +++ b/frontend/src/basic/SettingsPage/index.tsx @@ -14,7 +14,7 @@ const SettingsPage = (): JSX.Element => { const [newUrl, setNewUrl] = useState(''); const [error, setError] = useState(); // Regular expression to match a valid .onion URL - const onionUrlPattern = /^(http:\/\/|https:\/\/)?[a-zA-Z2-7]{16,56}\.onion$/; + const onionUrlPattern = /^(http:\/\/|https:\/\/)[a-zA-Z2-7]{16,56}\.onion$/; const addCoordinator = () => { if (federation.coordinators[newAlias]) {