catamphetamine / libphonenumber-js

A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript
https://catamphetamine.gitlab.io/libphonenumber-js/
MIT License
2.77k stars 218 forks source link

Israel fixed line phone considered invalid #380

Closed shiberz closed 4 years ago

shiberz commented 4 years ago

This error appears only with mobile data pack, min and max packages behaves as expected.

import { parsePhoneNumberFromString } from 'libphonenumber-js/mobile';
parsePhoneNumberFromString('+97239121111').isValid() 

actual result: false expected: true

Google.

catamphetamine commented 4 years ago

Israel fixed line phone considered invalid

This error appears only with mobile data pack

Well, what did you expect.

Also, the readme explicitly tells that mobile data is only for mobile numbers.