Skip to content

Commit

Permalink
Allowing colon
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonpincin committed May 28, 2014
1 parent b4092a7 commit 4ecf194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/valid-path.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var valid = /(^\/$)|(^(\/[a-zA-Z0-9_.-]+)+$)/
var valid = /(^\/$)|(^(\/[a-zA-Z0-9_.:\-]+)+$)/

module.exports = function validPath (path) {
if (!path) return false
Expand Down

0 comments on commit 4ecf194

Please sign in to comment.