Merge pull request #2 from chjj/feature/BIP21

bip21: fix regex parse error.
This commit is contained in:
Yemel Jardi 2014-08-12 12:35:41 -03:00
commit 288f21f7bd
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ BIP21.prototype.parse = function(uri) {
}
// workaround to host insensitiveness
var group = /[^:]*:/?/?([^?]*)/.exec(uri);
var group = /[^:]*:\/?\/?([^?]*)/.exec(uri);
this.setAddress(group && group[1]);
for (var arg in info.query) {