mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-26 16:25:32 -04:00
fix prompt test
rngState 883a6d2e518704c9fb fails on a single \n (line feed) password inputs can't contain carriage returns *or* line feeds
This commit is contained in:
parent
db15ae8b43
commit
ac63b91a1b
1 changed files with 1 additions and 1 deletions
|
@ -621,7 +621,7 @@ describe('TopNav', function () {
|
||||||
'returns the contents of the password input',
|
'returns the contents of the password input',
|
||||||
'string',
|
'string',
|
||||||
function (password) {
|
function (password) {
|
||||||
password = password.replace(/\r+/g, '');
|
password = password.replace(/\r+|\n+/g, '');
|
||||||
var results = [];
|
var results = [];
|
||||||
$('body').html(
|
$('body').html(
|
||||||
'<nav><div id="navbar"><ul><li><div id="password" ' +
|
'<nav><div id="navbar"><ul><li><div id="password" ' +
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue