Commit 50d57964af1b754a4b6eb123bb123d70b8628205

Authored by Braulio Bhavamitra
1 parent 9c082693

Allow _ in emails

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/noosfero/constants.rb
1 1 module Noosfero::Constants
2   - EMAIL_FORMAT = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i
  2 + EMAIL_FORMAT = /\A([^@\s]+)@((?:[-_a-z0-9]+\.)+[a-z]{2,})\Z/i
3 3 INTEGER_FORMAT = /\A\d*\Z/i
4 4 PROFILE_PER_PAGE = 10
5 5 end
... ...