mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-18 21:48:24 -04:00
fix prompt test
rngState 003ad8214ef0579cb6 fails on a single \n (line feed) password inputs can't contain carriage returns *or* line feeds
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ describe('Prompt', function () {
|
||||
'returns the password fed into the dialog',
|
||||
'string',
|
||||
function (password) {
|
||||
password = password.replace(/\r+/g, '');
|
||||
password = password.replace(/\r+|\n+/g, '');
|
||||
var clean = jsdom('', {url: 'ftp://example.com/?0000000000000000'});
|
||||
$('body').html(
|
||||
'<div id="passwordmodal" class="modal fade" role="dialog">' +
|
||||
|
||||
Reference in New Issue
Block a user