-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Invalid zip/postal codes when using locale en_CA #1416
Copy link
Copy link
Open
Labels
c: bugSomething isn't workingSomething isn't workingc: localePermutes locale definitionsPermutes locale definitionsm: locationSomething is referring to the location moduleSomething is referring to the location modulep: 1-normalNothing urgentNothing urgent
Milestone
Metadata
Metadata
Assignees
Labels
c: bugSomething isn't workingSomething isn't workingc: localePermutes locale definitionsPermutes locale definitionsm: locationSomething is referring to the location moduleSomething is referring to the location modulep: 1-normalNothing urgentNothing urgent
Fields
Give feedbackNo fields configured for issues without a type.
Pre-Checks
Describe the bug
When generating zip codes (postal codes) using the en_CA locale, invalid codes are generated. The characters
D,F,I,O,Q, orUare not used in postal codes. This is can cause the randomly generated codes to fail validation.Reference Documentation
Minimal reproduction code
Additional Context
No response
Environment Info
System: OS: macOS 12.3 CPU: (8) arm64 Apple M1 Pro Memory: 96.56 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 16.17.0 - /opt/homebrew/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 8.15.0 - /opt/homebrew/bin/npm Browsers: Brave Browser: 106.1.44.101 Chrome: 105.0.5195.52 Safari: 15.4 npmPackages: @faker-js/faker: ^7.5.0 => 7.5.0Which module system do you use?
Used Package Manager
npm