Skip to content

Commit

Permalink
Update allow rules to follow original conventions but ensure casing
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed Aug 26, 2014
1 parent 86cd16d commit bbc7eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Ports.coffee
Expand Up @@ -20,7 +20,7 @@ class Ports extends EventEmitter
if name is 'add' or name is 'remove'
throw new Error 'Add and remove are restricted port names'

unless name.match /^[a-z0-9_\.]+$/
unless name.match /^[a-z0-9_\.\/]+$/
throw new Error "Port names can only contain lowercase alphanumeric characters and underscores. '#{name}' not allowed"

# Remove previous implementation
Expand Down

0 comments on commit bbc7eb5

Please sign in to comment.