phonelib icon indicating copy to clipboard operation
phonelib copied to clipboard

Parsing of valid phone numbers from the Ivory Coast (+225) does not seem supported

Open cedric5 opened this issue 1 year ago • 1 comments

Description

Parsing of valid phone numbers from the Ivory Coast (+225) does not seem to be supported.

require 'phonelib'

Phonelib.parse('22545011499').country

=> nil

Phonelib.parse('22545011499').valid?

=> false
require 'phonelib'

Phonelib.parse('+22545011499').country

=> nil

Phonelib.parse('+22545011499').valid?

=> false

Expected Behavior

The methods should correctly identify the country as Ivory coast ("CI") and deem it valid.

Actual Behavior

The methods returns nil and false

cedric5 avatar Mar 05 '25 08:03 cedric5

@cedric5 This number is also parsed as invalid in original libphonenumber. You can check it here and open an issue for them. Gem's data is based on it.

daddyz avatar Mar 12 '25 05:03 daddyz