We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent def0777 commit 8455c48Copy full SHA for 8455c48
CLI/commands/common/global.js
@@ -25,7 +25,7 @@ function getGasPrice(networkId) {
25
}
26
27
function providerValidator(url) {
28
- var expression = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g;
+ var expression = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}(\.[a-z]{2,4})*\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g;
29
var regex = new RegExp(expression);
30
return url.match(regex);
31
@@ -52,4 +52,4 @@ module.exports = {
52
53
},
54
constants
55
-};
+};
0 commit comments