Skip to content

Commit

Permalink
Merge pull request #110 from zhishi-project/regex-matcher-bug
Browse files Browse the repository at this point in the history
Regex matcher bug
  • Loading branch information
Oreoluwa authored Jun 14, 2016
2 parents 64c3c0c + 5a47d54 commit 5de3752
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class User < ActiveRecord::Base
include NewNotification
include ZhishiDateHelper
include RouteKey

has_many :comments
has_many :questions
has_many :answers
Expand All @@ -13,7 +13,8 @@ class User < ActiveRecord::Base
has_many :resource_tags, as: :taggable
has_many :tags, through: :resource_tags
has_many :activities, foreign_key: :owner_id
EMAIL_FORMAT= /(?<email>[.\w]+@andela).co[m]?\z/
EMAIL_FORMAT= /(?<email>[.\w-]+@andela).co[m]?\z/
# /(?<email>[.\w]+@andela).co[m]?\z/

scope :with_statistics, Queries::StatisticsQuery

Expand Down

0 comments on commit 5de3752

Please sign in to comment.