Skip to content

Commit 8455c48

Browse files
committed
Update as per PR PolymathNetwork#669 to master
1 parent def0777 commit 8455c48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CLI/commands/common/global.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function getGasPrice(networkId) {
2525
}
2626

2727
function providerValidator(url) {
28-
var expression = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g;
28+
var expression = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}(\.[a-z]{2,4})*\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g;
2929
var regex = new RegExp(expression);
3030
return url.match(regex);
3131
}
@@ -52,4 +52,4 @@ module.exports = {
5252
}
5353
},
5454
constants
55-
};
55+
};

0 commit comments

Comments
 (0)