From 730e8236cf548f9430c8b94e399ccaa5de5221a7 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 12 Aug 2014 11:26:12 -0400 Subject: [PATCH] bip21: fix regex parse error. --- lib/BIP21.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/BIP21.js b/lib/BIP21.js index acdb445..ef8e37f 100644 --- a/lib/BIP21.js +++ b/lib/BIP21.js @@ -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) {