From c195947f771165e0b8e871cd218ee8fbc149c0a7 Mon Sep 17 00:00:00 2001 From: Dan Palmer Date: Fri, 12 Dec 2014 21:23:46 +0000 Subject: [PATCH] Fix the case on this option. This is a breaking change, so we will bump the version number to 0.4 --- jquery.complexify.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.complexify.js b/jquery.complexify.js index cd6c897..10cbb7c 100644 --- a/jquery.complexify.js +++ b/jquery.complexify.js @@ -116,7 +116,7 @@ minimumChars: 8, strengthScaleFactor: 1, bannedPasswords: window.COMPLEXIFY_BANLIST || [], - banmode: 'strict' // (strict|loose) + banMode: 'strict' // (strict|loose) }; if($.isFunction(options) && !callback) { @@ -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;