Explorar o código

handling JSVerify RNG state 89fdc94018a35b672e

El RIDO %!s(int64=8) %!d(string=hai) anos
pai
achega
35ea65b797
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      js/test.js

+ 1 - 1
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 = $('<div>' + prefix + url + ' ' + postfix + '</div>');