Skip to content

Commit

Permalink
Merge pull request #84 from QuickbridgeLtd/Add_regex_validation_to_ta…
Browse files Browse the repository at this point in the history
…sk_name

[COOK-4740] Add regex validation to task name
  • Loading branch information
btm committed Aug 27, 2014
2 parents 665bf70 + aee56f1 commit 54e083e
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 54e083e

Please sign in to comment.