Navigation Menu

Skip to content

Commit

Permalink
Merge branch 'master' of github.com:molnarg/js-schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Gábor Molnár committed Nov 9, 2014
2 parents da41958 + 2c426ad commit 073cf20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/extensions/String.js
Expand Up @@ -5,7 +5,7 @@ String.of = function() {
// (length, charset)
// (minLength, maxLength, charset)
var args = Array.prototype.slice.call(arguments).reverse()
, charset = args[0] ? ('[' + args[0] + ']') : '[a-zA-Z0-9]'
, charset = args[0] ? ('[' + args[0] + ']') : '.'
, max = args[1]
, min = (args.length > 2) ? args[2] : args[1]
, regexp = '^' + charset + '{' + (min || 0) + ',' + (max || '') + '}$'
Expand Down

0 comments on commit 073cf20

Please sign in to comment.