Skip to content

Commit

Permalink
fix RoR4 regex multiline anchor error
Browse files Browse the repository at this point in the history
  • Loading branch information
tofi86 committed Jun 2, 2015
1 parent 01fb664 commit 95281bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/project_alias.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ class ProjectAlias < ActiveRecord::Base
belongs_to :project

if defined? ChiliProject
IDENTIFIER_RE = /^(?!\d+$)[a-z0-9\-_]*$/
IDENTIFIER_RE = /\A(?!\d+$)[a-z0-9\-_]*\z/
else
IDENTIFIER_RE = /^(?!\d+$)[a-z0-9\-]*$/
IDENTIFIER_RE = /\A(?!\d+$)[a-z0-9\-]*\z/
end

validates_presence_of :project, :alias
Expand Down

0 comments on commit 95281bc

Please sign in to comment.