mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-12-29 13:15:44 +01:00
addressing false positive jsverify rngState 077c06da821594b3fe
This commit is contained in:
parent
7cb830e22f
commit
71c76adac4
1 changed files with 5 additions and 5 deletions
|
@ -81,7 +81,7 @@ describe('Helper', function () {
|
|||
'ignores non-URL content',
|
||||
'string',
|
||||
function (content) {
|
||||
content = content.replace("\r", "\n").replace("\u0000", '');
|
||||
content = content.replace(/\r/g, '\n').replace(/\u0000/g, '');
|
||||
let clean = jsdom();
|
||||
$('body').html('<div id="foo"></div>');
|
||||
let e = $('#foo');
|
||||
|
@ -103,8 +103,8 @@ describe('Helper', function () {
|
|||
function (prefix, schema, address, query, fragment, postfix) {
|
||||
query = query.join('');
|
||||
fragment = fragment.join('');
|
||||
prefix = prefix.replace("\r", "\n").replace("\u0000", '');
|
||||
postfix = ' ' + postfix.replace("\r", "\n").replace("\u0000", '');
|
||||
prefix = prefix.replace(/\r/g, '\n').replace(/\u0000/g, '');
|
||||
postfix = ' ' + postfix.replace(/\r/g, '\n').replace(/\u0000/g, '');
|
||||
let url = schema + '://' + address.join('') + '/?' + query + '#' + fragment,
|
||||
clean = jsdom();
|
||||
$('body').html('<div id="foo"></div>');
|
||||
|
@ -133,8 +133,8 @@ describe('Helper', function () {
|
|||
jsc.array(common.jscQueryString()),
|
||||
'string',
|
||||
function (prefix, query, postfix) {
|
||||
prefix = prefix.replace("\r", "\n").replace("\u0000", '');
|
||||
postfix = ' ' + postfix.replace("\r", "\n").replace("\u0000", '');
|
||||
prefix = prefix.replace(/\r/g, '\n').replace(/\u0000/g, '');
|
||||
postfix = ' ' + postfix.replace(/\r/g, '\n').replace(/\u0000/g, '');
|
||||
let url = 'magnet:?' + query.join('').replace(/^&+|&+$/gm,''),
|
||||
clean = jsdom();
|
||||
$('body').html('<div id="foo"></div>');
|
||||
|
|
Loading…
Reference in a new issue