refactor of #543
parent
ef7a86d7d0
commit
fec94ad170
|
@ -35,16 +35,14 @@ triggers query_nowhitespace_nodash => qr/
|
||||||
handle query_nowhitespace_nodash => sub {
|
handle query_nowhitespace_nodash => sub {
|
||||||
my $parcel_number = $+{parcel_number};
|
my $parcel_number = $+{parcel_number};
|
||||||
|
|
||||||
# Exit if $parcel_number doesn't exist.
|
if ($parcel_number && $parcel_number !~ /^isbn/i) {
|
||||||
return unless $parcel_number;
|
|
||||||
|
|
||||||
# Exit if $parcel_number starts with ISBN.
|
|
||||||
return if $parcel_number =~ /^isbn/i;
|
|
||||||
|
|
||||||
return $parcel_number,
|
return $parcel_number,
|
||||||
heading => 'Parcelforce Tracking',
|
heading => 'Parcelforce Tracking',
|
||||||
html =>
|
html =>
|
||||||
qq(Track this parcel at <a href="http://www.parcelforce.com/track-trace?trackNumber=$parcel_number">Parcelforce</a>.);
|
qq(Track this parcel at <a href="http://www.parcelforce.com/track-trace?trackNumber=$parcel_number">Parcelforce</a>.);
|
||||||
};
|
|
||||||
|
|
||||||
|
};
|
||||||
|
return;
|
||||||
|
};
|
||||||
1;
|
1;
|
||||||
|
|
Loading…
Reference in New Issue