https://github.com/remind101/e164.rb
e164.js but ruby
https://github.com/remind101/e164.rb
Last synced: 3 months ago
JSON representation
e164.js but ruby
- Host: GitHub
- URL: https://github.com/remind101/e164.rb
- Owner: remind101
- Created: 2014-09-11T20:16:46.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2022-07-28T22:24:41.000Z (about 4 years ago)
- Last Synced: 2025-01-10T16:37:34.986Z (over 1 year ago)
- Language: Ruby
- Size: 38.1 KB
- Stars: 1
- Watchers: 71
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# E164
A clone of [remind101/e164.js](https://github.com/remind101/e164.js) using the awesome power of regex.
Run `rake rebuild` to bring this module into sync with e164.js.
## Usage
```ruby
> E164::lookup('14032347847')
=> ["CA", "Canada"]
```
Just like the real e164.js, you should strip all non-numeric characters before performing the lookup.