Skip to content

Commit

Permalink
Minor change to previous commit - trim white space from ends of passw…
Browse files Browse the repository at this point in the history
…ords
  • Loading branch information
FayCross committed Jul 15, 2021
1 parent e380a93 commit bfd5822
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/site/parent_templates/site/common/js/application.js
Expand Up @@ -1489,7 +1489,7 @@ function parseContent(pageRef, sectionNum, contentNum, addHistory) {

for (var i=0; i<temp.length; i++) {
if (temp[i] != '') {
pswds.push(page.attr('passwordCase') != 'true' ? temp[i].toLowerCase() : temp[i]);
pswds.push(page.attr('passwordCase') != 'true' ? $.trim(temp[i].toLowerCase()) : $.trim(temp[i]));
}
}
}
Expand Down Expand Up @@ -1566,7 +1566,7 @@ function loadPage(page, pageHash, sectionNum, contentNum, pageIndex, standAloneP

for (var i=0; i<temp.length; i++) {
if (temp[i] != '') {
pswds.push($(this).attr('passwordCase') != 'true' ? temp[i].toLowerCase() : temp[i]);
pswds.push($(this).attr('passwordCase') != 'true' ? $.trim(temp[i].toLowerCase()) : $.trim(temp[i]));
}
}
}
Expand Down

0 comments on commit bfd5822

Please sign in to comment.