Skip to content

Commit

Permalink
Added missing country
Browse files Browse the repository at this point in the history
  • Loading branch information
mnestorov committed Aug 21, 2024
1 parent dfc5a80 commit 85a129c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions patterns.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,14 @@
"[0-9]{6,12}$": "Matches 6 to 12 digits representing the local phone number."
}
},
"Kosovo": {
"pattern": "^\\+383[1-9][0-9]{6,7}$",
"explanation": {
"^\\+383": "Matches the country code for Kosovo (+383).",
"[1-9]": "Ensures that the first digit after the country code is between 1 and 9.",
"[0-9]{6,7}$": "Matches 6 to 7 digits following the initial digit, representing the local phone number."
}
},
"Latvia": {
"pattern": "^\\+371[2-9][0-9]{7}$",
"explanation": {
Expand Down Expand Up @@ -451,6 +459,12 @@
"^\\d{5}$": "Matches exactly 5 digits, representing the postal code."
}
},
"Kosovo": {
"pattern": "^\\d{5}$",
"explanation": {
"^\\d{5}$": "Matches exactly 5 digits, representing the postal code."
}
},
"Latvia": {
"pattern": "^LV-\\d{4}$",
"explanation": {
Expand Down Expand Up @@ -739,6 +753,14 @@
"[0-9]{11}$": "Matches exactly 11 digits following the prefix."
}
},
"Kosovo": {
"pattern": "^XK\\d{8}[A-Z]$",
"explanation": {
"^XK": "Matches the VAT prefix 'XK' for Kosovo.",
"\\d{8}": "Matches exactly 8 digits following the prefix.",
"[A-Z]$": "Ensures that the VAT number ends with a capital letter."
}
},
"Latvia": {
"pattern": "^LV\\d{11}$",
"explanation": {
Expand Down

0 comments on commit 85a129c

Please sign in to comment.