Comments (4)
it should work for cellphones too. recently support for regional codes for spanish numbers were added. I'll need to take a look at the regexes there. @ferigis if you know how to fix it, i'm glad to merge your changes.
can you point me to the spanish numbering plan in english? it would make it easier.
from phone.
Hello lads,
I am just seeing this problem... It looks like the code is not treating the mobile phones in 🇪🇸
(My bad, the change I had sent previously didn’t include the format @fcevado )
@ferigis, correct if I am getting it wrong but the format for mobile number in Spain should be:
+34 6XY...
+34 71Y...
+34 72Y...
+34 73Y...
+34 74Y...
(X and Y can be any digit from 0 to 9)
So, we are gonna have this format:
Any suggestions on how to return the following keys?
area_abbreviation, area_code, area_name, area_type
I can send a PR with this small change soon 🔥
Thanks, y'all!
from phone.
@luhalvesbr a simple way to solve it is to create a Phone.ES.Mobile
as the way it's done for toll free numbers for Brazil or NANP.
just an example:
https://github.com/fcevado/phone/blob/main/lib/phone/br/toll_free.ex
from phone.
fixed by #140
from phone.
Related Issues (14)
- Angola numbers
- Remove code that leads to dialyzer warnings
- Using invalid phone numbers in testing. HOT 2
- NANP new toll free code 833 HOT 1
- restructure patter matching macros to reduce compilation time HOT 3
- Updates for the Netherlands and California
- Incorrect specs for parse/2
- Parser :au missing for country_parser macro in file deps/phone/lib/helpers/parser.ex HOT 1
- Brazilian mobile phone numbers cannot be parsed HOT 6
- Issue parsing Irish phone numbers HOT 4
- phoenix 1.3 support ? HOT 2
- Improve tests, coverage too low
- Reduce Ebert issues HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phone.