phony_rails icon indicating copy to clipboard operation
phony_rails copied to clipboard

#phony_normalized cuts zero in the middle of the phone number

Open sptsn opened this issue 5 years ago • 1 comments

#phony_normalized cuts zero in the middle of the phone number for numbers start with 910 up to 950:

'9101234567'.phony_normalized #=> "911234567"
'9201234567'.phony_normalized #=> "921234567"
'9301234567'.phony_normalized #=> "931234567"
'9401234567'.phony_normalized #=> "941234567"
'9501234567'.phony_normalized #=> "+951234567"

Is it proper behaviour? From 960 to 990 it works as expected

'9601234567'.phony_normalized #=> "+9601234567"
'9701234567'.phony_normalized #=> "9701234567"
'9801234567'.phony_normalized #=> "981234567"
'9901234567'.phony_normalized #=> "9901234567"

sptsn avatar Sep 11 '19 12:09 sptsn

I am also experiencing an issue like this on normalizing 0503017926, I get +971503017926

Any idea?

m-abdurrehman avatar Dec 03 '20 13:12 m-abdurrehman