Skip to content

Commit b0fb243

Browse files
committed
fix(settings): allow allows for subdomains in electrum config
1 parent f76aea9 commit b0fb243

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/screens/Settings/ElectrumConfig/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const isValidURL = (data: string): boolean => {
5353

5454
// Allow standard domains, custom TLDs like .local, and IPv4 addresses
5555
const isValidDomainOrIP = !!url.hostname.match(
56-
/^([a-z\d]([a-z\d-]*[a-z\d])*\.[a-z\d-]+|(\d{1,3}\.){3}\d{1,3})$/i,
56+
/^([a-z\d]([a-z\d-]*[a-z\d])*\.)+[a-z\d-]+|(\d{1,3}\.){3}\d{1,3}$/i,
5757
);
5858

5959
// Always allow .local domains

0 commit comments

Comments
 (0)