tracking_number_data
tracking_number_data copied to clipboard
Old Dominion support
I've been maintaining this for a while privately, but figured it was worth trying to upstream.
I'm not confident on the actual regex for the tracking numbers, as this is largely based just on some example tracking (pro) numbers I've seen. I've gradually had to tweak the regex to accommodate new tracking numbers.
One of the valid tracking numbers I included (78045768393) does match both Old Dominion and DHL, however DHL's website doesn't recognize the tracking number, so maybe DHL is too loose (or maybe it's a possible DHL number, they just haven't used it yet).
Summary by CodeRabbit
-
New Features
- Added support for Old Dominion Freight Line and Old Dominion Guaranteed Shipment tracking numbers.
-
Enhancements
- Implemented Luhn algorithm for checksum validation of tracking numbers.