diff --git a/js/test/Prompt.js b/js/test/Prompt.js index e7c88501..c216666d 100644 --- a/js/test/Prompt.js +++ b/js/test/Prompt.js @@ -11,7 +11,7 @@ describe('Prompt', function () { 'returns the password fed into the dialog', 'string', function (password) { - password = password.replace(/\r+/g, ''); + password = password.replace(/\r+|\n+/g, ''); var clean = jsdom('', {url: 'ftp://example.com/?0000000000000000'}); $('body').html( '