Skip to content

Commit

Permalink
Fix the case on this option.
Browse files Browse the repository at this point in the history
This is a breaking change, so we will bump the version number to 0.4
  • Loading branch information
danpalmer committed Dec 12, 2014
1 parent 56f5628 commit c195947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.complexify.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
minimumChars: 8,
strengthScaleFactor: 1,
bannedPasswords: window.COMPLEXIFY_BANLIST || [],
banmode: 'strict' // (strict|loose)
banMode: 'strict' // (strict|loose)
};

if($.isFunction(options) && !callback) {
Expand All @@ -136,7 +136,7 @@
}

function inBanlist(str) {
if (options.banmode === 'strict') {
if (options.banMode === 'strict') {
for (var i = 0; i < options.bannedPasswords.length; i++) {
if (options.bannedPasswords[i].indexOf(str) !== -1) {
return true;
Expand Down

0 comments on commit c195947

Please sign in to comment.