Skip to content

Commit

Permalink
[COOK-4740] Add regex validation to task name
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-slynko committed Jun 25, 2014
1 parent 185137b commit aee56f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# and not very useful
actions :create, :delete, :run, :change

attribute :name, :kind_of => String, :name_attribute => true
attribute :name, :kind_of => String, :name_attribute => true, :regex => [ /\A[^\\\/\:\*\?\<\>\|]+\z/ ]
attribute :command, :kind_of => String
attribute :cwd, :kind_of => String
attribute :user, :kind_of => String, :default => nil
Expand Down

0 comments on commit aee56f1

Please sign in to comment.