mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-22 22:40:48 -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:
parent
740fd90db9
commit
db15ae8b43
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ describe('Prompt', function () {
|
||||||
'returns the password fed into the dialog',
|
'returns the password fed into the dialog',
|
||||||
'string',
|
'string',
|
||||||
function (password) {
|
function (password) {
|
||||||
password = password.replace(/\r+/g, '');
|
password = password.replace(/\r+|\n+/g, '');
|
||||||
var clean = jsdom('', {url: 'ftp://example.com/?0000000000000000'});
|
var clean = jsdom('', {url: 'ftp://example.com/?0000000000000000'});
|
||||||
$('body').html(
|
$('body').html(
|
||||||
'<div id="passwordmodal" class="modal fade" role="dialog">' +
|
'<div id="passwordmodal" class="modal fade" role="dialog">' +
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue