diff --git a/js/test/TopNav.js b/js/test/TopNav.js index 1efb83e8..64ed1e19 100644 --- a/js/test/TopNav.js +++ b/js/test/TopNav.js @@ -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( '