bip21: use RegExp.exec instead of String.match.
This commit is contained in:
parent
b361bfe1d0
commit
f46cc65aba
@ -56,7 +56,7 @@ BIP21.prototype.parse = function(uri) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// workaround to host insensitiveness
|
// workaround to host insensitiveness
|
||||||
var group = uri.match('[^:]*:/?/?([^?]*)');
|
var group = /[^:]*:/?/?([^?]*)/.exec(uri);
|
||||||
this.setAddress(group && group[1]);
|
this.setAddress(group && group[1]);
|
||||||
|
|
||||||
for (var arg in info.query) {
|
for (var arg in info.query) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user