Commit 2c5b8d5
committed
Add Norwegian passport validation
The regex is constructed based on the Norwegian Police's control
guide:
https://www.politiet.no/globalassets/tjenester-admin/pass-og-id-kort/control-guide-for-norwegian-passports.pdf
(ISBN 978-82-8256-097-9).
It matches Norwegian passport numbers starting with C, K, or FG, FH,
FJ, FL, and FK prefixes, followed by alphanumeric characters.
The guide is not very detailed. It does not specify passport number
length, so this is not validated.1 parent f2e3633 commit 2c5b8d5
2 files changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3825 | 3825 | | |
3826 | 3826 | | |
3827 | 3827 | | |
| 3828 | + | |
| 3829 | + | |
| 3830 | + | |
| 3831 | + | |
| 3832 | + | |
| 3833 | + | |
| 3834 | + | |
| 3835 | + | |
| 3836 | + | |
| 3837 | + | |
3828 | 3838 | | |
3829 | 3839 | | |
3830 | 3840 | | |
| |||
0 commit comments