In working through some of the information from #99 it appears there was an error in the DHL tracking number regex.
For checksum calculations to work, the <SerialNumber> group should contain only numbers, but For DHL Express numbers that contained letters as well. The ruby client didn't error due to this since in ruby "JD000000".to_i == 0, but in other clients this caused an issue.
This PR corrects that.
Additionally, it turns out with that correction that "JVGL0999999990" does not pass mod7 validation, so I have split those oddball J* dhl numbers into their own group without validation until more information is found about them.
In working through some of the information from #99 it appears there was an error in the DHL tracking number regex.
For checksum calculations to work, the
<SerialNumber>
group should contain only numbers, but For DHL Express numbers that contained letters as well. The ruby client didn't error due to this since in ruby"JD000000".to_i == 0
, but in other clients this caused an issue.This PR corrects that.
Additionally, it turns out with that correction that "JVGL0999999990" does not pass mod7 validation, so I have split those oddball J* dhl numbers into their own group without validation until more information is found about them.