handling JSVerify RNG state 89fdc94018a35b672e

This commit is contained in:
El RIDO 2017-11-21 10:56:58 +01:00
parent c6ddee317d
commit 35ea65b797
No known key found for this signature in database
GPG Key ID: 0F5C940A6BD81F92

View File

@ -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>');