Open rd-waymark opened 3 months ago
I can see that the 016977 numbers are incorrect. But what is wrong with the 0887 and 0971 numbers? They appear to be the correct number of digits.
Ignore my previous comments. As Bogus imports its locales directly from faker.js, the issue is with the locale data that faker.js has.
See https://github.com/faker-js/faker/blob/next/src/locales/en_GB/phone_number/format/human.ts
I suggest opening an issue in the faker-js repo. Once resolved, it should get synced into Bogus according to the documentation here https://github.com/bchavez/Bogus/wiki/Creating-Locales
Bogus NuGet Package
35.6.0
.NET Version
NET 8.0.400
Visual Studio Version
Rider 2024.1.4
What operating system are you using?
Windows
What locale are you using with Bogus?
en_GB
Problem Description
Some phone numbers generated by Faker.Phone.PhoneNumber() when using the en_GB locale are invalid
LINQPad Example or Reproduction Steps
void Main() { while(true) { var faker = new Faker("en_GB");
}