Skip to content

Commit

Permalink
Fixed SLUG_RE
Browse files Browse the repository at this point in the history
  • Loading branch information
insin committed Feb 21, 2014
1 parent ae22ab5 commit ef3731d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ var EmailValidator = Concur.extend({

var validateEmail = EmailValidator()

var SLUG_RE = /^[-\w]+$/
var SLUG_RE = /^[-a-zA-Z0-9_]+$/
/** Validates that input is a valid slug. */
var validateSlug = RegexValidator({
regex: SLUG_RE
Expand Down

0 comments on commit ef3731d

Please sign in to comment.