Skip to content

Commit 67a4c2d

Browse files
committed
Release v2.1.4
1 parent 1293ebd commit 67a4c2d

File tree

7 files changed

+16
-14
lines changed

7 files changed

+16
-14
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CHANGELOG
22

3-
## 2.1.4dev
3+
## 2.1.4
44

55
- Thai localization.
66
- Fix typo in German localization.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pwstrength-bootstrap",
3-
"version": "2.1.3",
3+
"version": "2.1.4",
44
"homepage": "https://github.com/ablanco/jquery.pwstrength.bootstrap",
55
"authors": [
66
"Alejandro Blanco <alejandro.b.e@gmail.com>"

dist/pwstrength-bootstrap.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* jQuery Password Strength plugin for Twitter Bootstrap
3-
* Version: 2.1.3
3+
* Version: 2.1.4
44
*
55
* Copyright (c) 2008-2013 Tane Piper
66
* Copyright (c) 2013 Alejandro Blanco
@@ -101,7 +101,7 @@ try {
101101
};
102102

103103
validation.wordInvalidChar = function (options, word, score) {
104-
if (word.match(/[\s,',"]/)) {
104+
if (options.common.invalidCharsRegExp.test(word)) {
105105
return score;
106106
}
107107
return 0;
@@ -246,6 +246,7 @@ defaultOptions.common = {};
246246
defaultOptions.common.minChar = 6;
247247
defaultOptions.common.maxChar = 20;
248248
defaultOptions.common.usernameField = "#username";
249+
defaultOptions.common.invalidCharsRegExp = new RegExp(/[\s,'"]/);
249250
defaultOptions.common.userInputs = [
250251
// Selectors for input fields with user input
251252
];
@@ -287,8 +288,8 @@ defaultOptions.rules.activated = {
287288
wordInvalidChar: false,
288289
wordSimilarToUsername: true,
289290
wordSequences: true,
290-
wordTwoCharacterClasses: false,
291-
wordRepetitions: false,
291+
wordTwoCharacterClasses: true,
292+
wordRepetitions: true,
292293
wordLowercase: true,
293294
wordUppercase: true,
294295
wordOneNumber: true,

dist/pwstrength-bootstrap.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pwstrength-bootstrap.min.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/pwstrength.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* jQuery Password Strength plugin for Twitter Bootstrap
3-
* Version: 2.1.3
3+
* Version: 2.1.4
44
*
55
* Copyright (c) 2008-2013 Tane Piper
66
* Copyright (c) 2013 Alejandro Blanco
@@ -101,7 +101,7 @@ try {
101101
};
102102

103103
validation.wordInvalidChar = function (options, word, score) {
104-
if (word.match(/[\s,',"]/)) {
104+
if (options.common.invalidCharsRegExp.test(word)) {
105105
return score;
106106
}
107107
return 0;
@@ -246,6 +246,7 @@ defaultOptions.common = {};
246246
defaultOptions.common.minChar = 6;
247247
defaultOptions.common.maxChar = 20;
248248
defaultOptions.common.usernameField = "#username";
249+
defaultOptions.common.invalidCharsRegExp = new RegExp(/[\s,'"]/);
249250
defaultOptions.common.userInputs = [
250251
// Selectors for input fields with user input
251252
];
@@ -287,8 +288,8 @@ defaultOptions.rules.activated = {
287288
wordInvalidChar: false,
288289
wordSimilarToUsername: true,
289290
wordSequences: true,
290-
wordTwoCharacterClasses: false,
291-
wordRepetitions: false,
291+
wordTwoCharacterClasses: true,
292+
wordRepetitions: true,
292293
wordLowercase: true,
293294
wordUppercase: true,
294295
wordOneNumber: true,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pwstrength-bootstrap",
3-
"version": "2.1.3",
3+
"version": "2.1.4",
44
"description": "jQuery plugin for Twitter Bootstrap that provides rulesets for visualy displaying the quality of a users typed in password.",
55
"author": "Alejandro Blanco <alejandro.b.e@gmail.com>",
66
"homepage": "https://github.com/ablanco/jquery.pwstrength.bootstrap",

0 commit comments

Comments
 (0)