VIN plugin now links to Decode This.

master
Jag Talon 2013-03-18 14:59:14 -04:00
parent c9b1b36aa4
commit fbd5013a6f
2 changed files with 10 additions and 9 deletions

View File

@ -136,8 +136,9 @@ handle query_nowhitespace_nodash => sub {
} }
} }
if ($is_vin) { if ($is_vin) {
return $vin_number, heading => "CarFax", html => qq(Check the automobile's VIN at <a href='http://www.carfax.com/cfm/check_order.cfm?VIN=$vin_number&PopUpStatus=0'>CarFax</a>.); return $vin_number, heading => "Vehicle Identification Number", html => qq(Check the automobile's VIN at <a href='http://www.decodethis.com/VIN-Decoded/vin/$vin_number'>Decode This</a>.);
} }
return; return;

16
t/VIN.t
View File

@ -12,23 +12,23 @@ ddg_goodie_test(
[qw( DDG::Goodie::VIN )], [qw( DDG::Goodie::VIN )],
'1g8gg35m1g7123101' => test_zci( '1g8gg35m1g7123101' => test_zci(
"1G8GG35M1G7123101", "1G8GG35M1G7123101",
heading => 'CarFax', heading => 'Vehicle Identification Number',
html => "Check the automobile's VIN at <a href='http://www.carfax.com/cfm/check_order.cfm?VIN=1G8GG35M1G7123101&PopUpStatus=0'>CarFax</a>." html => "Check the automobile's VIN at <a href='http://www.decodethis.com/VIN-Decoded/vin/1G8GG35M1G7123101'>Decode This</a>."
), ),
'vin 1g8gg35m1g7123101' => test_zci( 'vin 1g8gg35m1g7123101' => test_zci(
"1G8GG35M1G7123101", "1G8GG35M1G7123101",
heading => 'CarFax', heading => 'Vehicle Identification Number',
html => "Check the automobile's VIN at <a href='http://www.carfax.com/cfm/check_order.cfm?VIN=1G8GG35M1G7123101&PopUpStatus=0'>CarFax</a>." html => "Check the automobile's VIN at <a href='http://www.decodethis.com/VIN-Decoded/vin/1G8GG35M1G7123101'>Decode This</a>."
), ),
'1g8gg35m1g7123101 vehicle identification number' => test_zci( '1g8gg35m1g7123101 vehicle identification number' => test_zci(
"1G8GG35M1G7123101", "1G8GG35M1G7123101",
heading => 'CarFax', heading => 'Vehicle Identification Number',
html => "Check the automobile's VIN at <a href='http://www.carfax.com/cfm/check_order.cfm?VIN=1G8GG35M1G7123101&PopUpStatus=0'>CarFax</a>." html => "Check the automobile's VIN at <a href='http://www.decodethis.com/VIN-Decoded/vin/1G8GG35M1G7123101'>Decode This</a>."
), ),
'1g8gg35m1g7123101 tracking' => test_zci( '1g8gg35m1g7123101 tracking' => test_zci(
"1G8GG35M1G7123101", "1G8GG35M1G7123101",
heading => 'CarFax', heading => 'Vehicle Identification Number',
html => "Check the automobile's VIN at <a href='http://www.carfax.com/cfm/check_order.cfm?VIN=1G8GG35M1G7123101&PopUpStatus=0'>CarFax</a>." html => "Check the automobile's VIN at <a href='http://www.decodethis.com/VIN-Decoded/vin/1G8GG35M1G7123101'>Decode This</a>."
), ),
); );