Method: Webhookdb::PhoneNumber::US.normalize
- Defined in:
- lib/webhookdb/phone_number.rb
.normalize(s) ⇒ Object
7 8 9 10 11 |
# File 'lib/webhookdb/phone_number.rb', line 7 def self.normalize(s) norm = Phony.normalize(s, cc: "1") norm = "1#{norm}" if norm.length == 10 && norm.first == "1" return norm end |