This only affects you if you use the custom formats introduced in the commit of two hours ago.
…refix When using the default NumerRecognizer, country and prefix are the same. When using custom formats, you can add a :country_code which overrides the country value returned by number recognizer. The use case I have for this is when we have fake msisdns generated in a 89x prefix range (officially not assigned to any country), we can still say that it belongs to a Dutch person with country code 31.
The old prefix was valid 10 years ago, now there are more mobile numbers and operators
…rmat * Added NumberRecognizer.add_format, to add number formats * It takes a hash with 3 parameters: :country, :mobile, :format * The old formats have been ported to the new format, renaming some for consistency * KNOWN_FORMATS has been removed. Formats are kept in NumberRecognizer.formats * Replaced NumberRecognizer#type with NumberRecognizer#country_name and NumberRecognizer#mobile? * Cleaned up specs to reduce duplicate checking of functionality
This feature starts to collide with other countries, so that's not good.
It is kinda silly to bounce the number on a missing zero...
I'm only interested in Dutch and Belgian mobile numbers, so just be specific here.