Skip to content
This repository was archived by the owner on Jul 24, 2020. It is now read-only.

Commit bc54fa8

Browse files
authored
Merge pull request #1647 from YaleSTC/1633_fix_phone_regex
Fix phone regex parsing
2 parents a9d591e + f686968 commit bc54fa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/user.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class User < ActiveRecord::Base
3030
:last_name,
3131
:affiliation, presence: true
3232
validates :phone, presence: true,
33-
format: { with: %r{/\A\S[0-9\+\/\(\)\s\-]*\z/i} },
33+
format: { with: %r{\A[0-9\+\/\(\)\s\-]*\z} },
3434
length: { minimum: 10 },
3535
unless: ->(u) { u.skip_phone_validation? }
3636

0 commit comments

Comments
 (0)