Commit 5ef599486dbf69a7ad4facb0e0a72e9c6b920092

Authored by Marius Hanne
1 parent 274da3cbac
Exists in master

fix regex

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -9,7 +9,7 @@
9 9 validates_presence_of :operator
10 10 validates_presence_of :expr_value
11 11  
12   - validates_format_of :operator, :with => /^(contains|starts with)$/
  12 + validates_format_of :operator, :with => /\A(contains|starts with)\Z/
13 13  
14 14 def self.migration
15 15 Class.new(ActiveRecord::Migration).tap { |c|