Skip to content

Commit

Permalink
Accept lowercase Z (1z..) for UPS tracking numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
cgunther committed Jul 11, 2024
1 parent 939580e commit eb879ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions couriers/ups.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"name": "UPS",
"id": "ups",
"regex": [
"\\s*1\\s*Z\\s*(?<SerialNumber>",
"\\s*1\\s*[Zz]\\s*(?<SerialNumber>",
"(?<ShipperId>(?:[A-Z0-9]\\s*){6,6})",
"(?<ServiceType>(?:[A-Z0-9]\\s*){2,2})",
"(?<PackageId>(?:[A-Z0-9]\\s*){7,7}))",
Expand Down Expand Up @@ -127,7 +127,8 @@
"1Z410E7W0392751591",
"1Z8V92A70367203024",
" 1 Z 8 V 9 2 A 7 0 3 6 7 2 0 3 0 2 4 ",
"1ZXX3150YW44070023"
"1ZXX3150YW44070023",
"1zXX3150YW44070023"
],
"invalid": [
"2Z5R89390357567127",
Expand Down

0 comments on commit eb879ad

Please sign in to comment.