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:
El RIDO 2025-02-06 08:48:36 +01:00
parent db15ae8b43
commit ac63b91a1b
No known key found for this signature in database
GPG Key ID: 0F5C940A6BD81F92

View File

@ -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" ' +