password-generator
Advanced tools
Comparing version 2.2.2 to 2.2.3
@@ -39,3 +39,3 @@ /* | ||
if (!memorable) { | ||
for (i = 33; 126 > i; i += 1) { | ||
for (i = 33; i <= 126; i += 1) { | ||
char = String.fromCharCode(i); | ||
@@ -42,0 +42,0 @@ if (char.match(pattern)) { |
{ | ||
"name": "password-generator", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"description": "Memorable password generator. For the command line, Node.js and the browser.", | ||
@@ -42,3 +42,3 @@ "author": "Bermi Ferrer <bermi@bermilabs.com>", | ||
"test": "make test", | ||
"precommit": "grunt build && git add dist/*" | ||
"beforeBump": "grunt build && git add dist/*" | ||
}, | ||
@@ -45,0 +45,0 @@ "typings": "index.d.ts", |
@@ -71,4 +71,9 @@ (function (root) { | ||
it('should allow ~ character', function () { | ||
var pass = generatePassword(2, false, /[~]/); | ||
expect(pass.length).to.be(2); | ||
expect(pass).to.be('~~'); | ||
}); | ||
}); | ||
}(this)); |
24662
404