lk-geimfari / mimesis

Mimesis is a robust data generator for Python that can produce a wide range of fake data in multiple languages.
https://mimesis.name
MIT License
4.44k stars 336 forks source link

Telephone numbers are incorrect #287

Closed sobolevn closed 6 years ago

sobolevn commented 6 years ago

Country code can not be less than 1.

telephone() method uses custom_code to generate a phone number, but there this rule is not respected: https://github.com/lk-geimfari/mimesis/blob/master/mimesis/utils.py#L205

As it can generate something like +0-(...)-...

Reference: https://countrycode.org/

lk-geimfari commented 6 years ago

@sobolevn Thank you! I'll fix it today.