From 35ea65b7973c1fc40555dc92f3517a5c92d82d03 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Tue, 21 Nov 2017 10:56:58 +0100 Subject: [PATCH] handling JSVerify RNG state 89fdc94018a35b672e --- js/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/test.js b/js/test.js index 8f81567..39c3c8e 100644 --- a/js/test.js +++ b/js/test.js @@ -187,7 +187,7 @@ describe('Helper', function () { jsc.array(jsc.elements(queryString)), 'string', function (prefix, query, postfix) { - var url = 'magnet:?' + query.join(''), + var url = 'magnet:?' + query.join('').replace(/^&+|&+$/gm,''), prefix = $.PrivateBin.Helper.htmlEntities(prefix), postfix = $.PrivateBin.Helper.htmlEntities(postfix), element = $('
' + prefix + url + ' ' + postfix + '
');