tracking_number_data icon indicating copy to clipboard operation
tracking_number_data copied to clipboard

Old Dominion support

Open cgunther opened this issue 7 months ago • 1 comments

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.

cgunther avatar Jul 11 '24 19:07 cgunther