From 20560074be3365db6ad99bd88c8fec83ab9b0e9e Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Mon, 6 Apr 2015 21:40:15 -0300 Subject: [PATCH] rails4: fix identifier regexp --- app/models/profile.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/profile.rb b/app/models/profile.rb index a28cb7e..a04712d 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -188,7 +188,7 @@ class Profile < ActiveRecord::Base validates_length_of :description, :maximum => 550, :allow_nil => true # Valid identifiers must match this format. - IDENTIFIER_FORMAT = /#{Noosfero.identifier_format}/ + IDENTIFIER_FORMAT = /\A#{Noosfero.identifier_format}\Z/ # These names cannot be used as identifiers for Profiles RESERVED_IDENTIFIERS = %w[ -- libgit2 0.21.2