mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-03-02 11:19:28 -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',
|
||||
'string',
|
||||
function (password) {
|
||||
password = password.replace(/\r+/g, '');
|
||||
password = password.replace(/\r+|\n+/g, '');
|
||||
var results = [];
|
||||
$('body').html(
|
||||
'<nav><div id="navbar"><ul><li><div id="password" ' +
|
||||
|
Loading…
x
Reference in New Issue
Block a user