parent
f9c3c07aa2
commit
257b4d43b4
|
@ -86,7 +86,7 @@ handle query_nowhitespace_nodash => sub {
|
|||
}
|
||||
|
||||
if ($is_usps) {
|
||||
return $package_number, heading => "USPS Shipment Tracking", html => qq(Track this shipment at <a href="http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do?origTrackNum=$package_number">USPS</a>.);
|
||||
return $package_number, heading => "USPS Shipment Tracking", html => qq(Track this shipment at <a href="https://tools.usps.com/go/TrackConfirmAction.action?tLabels=$package_number">USPS</a>.);
|
||||
}
|
||||
|
||||
return;
|
||||
|
|
4
t/USPS.t
4
t/USPS.t
|
@ -13,12 +13,12 @@ ddg_goodie_test(
|
|||
'EA 000 000 000 US' => test_zci(
|
||||
"EA000000000US",
|
||||
heading => 'USPS Shipment Tracking',
|
||||
html => qq(Track this shipment at <a href="http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do?origTrackNum=EA000000000US">USPS</a>.)
|
||||
html => qq(Track this shipment at <a href="https://tools.usps.com/go/TrackConfirmAction.action?tLabels=EA000000000US">USPS</a>.)
|
||||
),
|
||||
'usps 7000 0000 0000 0000 0000' => test_zci(
|
||||
"70000000000000000000",
|
||||
heading => 'USPS Shipment Tracking',
|
||||
html => qq(Track this shipment at <a href="http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do?origTrackNum=70000000000000000000">USPS</a>.)
|
||||
html => qq(Track this shipment at <a href="https://tools.usps.com/go/TrackConfirmAction.action?tLabels=70000000000000000000">USPS</a>.)
|
||||
),
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue