From f46cc65aba48442ca4b2067faaa3281490a72f79 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 12 Aug 2014 11:03:01 -0400 Subject: [PATCH] bip21: use RegExp.exec instead of String.match. --- lib/BIP21.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {