support adding http://localhost:8545 as a node

This commit is contained in:
Iuri Matias 2021-04-29 15:51:16 -04:00
parent 010b617da6
commit 4b3a677f4d
1 changed files with 1 additions and 1 deletions

View File

@ -334,7 +334,7 @@ QtObject {
}
function isURL(text) {
return (/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/.test(text))
return (/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}(\.[a-zA-Z0-9()]{1,6})?\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/.test(text))
}
function isURLWithOptionalProtocol(text) {