mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-19 04:31:35 +00:00
Fix RegExp
This commit is contained in:
parent
b76d40a087
commit
17a077b5a0
@ -14,7 +14,7 @@ const SettingsPage = (): JSX.Element => {
|
|||||||
const [newUrl, setNewUrl] = useState<string>('');
|
const [newUrl, setNewUrl] = useState<string>('');
|
||||||
const [error, setError] = useState<string>();
|
const [error, setError] = useState<string>();
|
||||||
// Regular expression to match a valid .onion URL
|
// 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 = () => {
|
const addCoordinator = () => {
|
||||||
if (federation.coordinators[newAlias]) {
|
if (federation.coordinators[newAlias]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user