mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-03-03 11:49:15 -05: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
@ -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…
x
Reference in New Issue
Block a user