diff --git a/lib/BIP21.js b/lib/BIP21.js index 3ac023b..9253f1a 100644 --- a/lib/BIP21.js +++ b/lib/BIP21.js @@ -56,7 +56,7 @@ BIP21.prototype.parse = function(uri) { } // workaround to host insensitiveness - var group = uri.match('[^:]*:/?/?([^?]*)'); + var group = /[^:]*:/?/?([^?]*)/.exec(uri); this.setAddress(group && group[1]); for (var arg in info.query) {