Commit 20560074be3365db6ad99bd88c8fec83ab9b0e9e
1 parent
9b8228e7
Exists in
master
and in
20 other branches
rails4: fix identifier regexp
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/profile.rb
@@ -188,7 +188,7 @@ class Profile < ActiveRecord::Base | @@ -188,7 +188,7 @@ class Profile < ActiveRecord::Base | ||
188 | validates_length_of :description, :maximum => 550, :allow_nil => true | 188 | validates_length_of :description, :maximum => 550, :allow_nil => true |
189 | 189 | ||
190 | # Valid identifiers must match this format. | 190 | # Valid identifiers must match this format. |
191 | - IDENTIFIER_FORMAT = /#{Noosfero.identifier_format}/ | 191 | + IDENTIFIER_FORMAT = /\A#{Noosfero.identifier_format}\Z/ |
192 | 192 | ||
193 | # These names cannot be used as identifiers for Profiles | 193 | # These names cannot be used as identifiers for Profiles |
194 | RESERVED_IDENTIFIERS = %w[ | 194 | RESERVED_IDENTIFIERS = %w[ |