Permalink
Browse files

s/header/heading && formatting

  • Loading branch information...
1 parent b2dbb5d commit 5bf0f098e3f8d1b4148aff527f36a31b49826131 @majuscule majuscule committed Sep 10, 2012
Showing with 5 additions and 5 deletions.
  1. +3 −3 lib/DDG/Goodie/Unicornify.pm
  2. +2 −2 t/Unicornify.t
@@ -14,13 +14,13 @@ handle remainder => sub {
if (Email::Valid->address($_)) {
s/[\s\t]+//g; # strip whitespace from the remainder, we just need the email address.
my $answer = 'This is a unique unicorn for ' . $_ . ':' . "\nLearn more at unicornify.appspot.com";
- my $header = $_ . '(Unicornify)';
+ my $heading = $_ . ' (Unicornify)';
my $html = 'This is a unique unicorn for ' . $_ . ':'
.'<br /><a href="' . unicornify_url(email => $_, size => 128) .'">'
.'<img src="'.unicornify_url(email => $_, size => "100").'" style="margin: 10px 0px 10px 20px; border-radius: 8px;" /></a>'
- . '<br /><a href="'.$link.'">Learn more at unicornify.appspot.com</a>';
+ . 'Learn more at <a href="'.$link.'">unicornify.appspot.com</a>';
- return $answer, header => $header, html => $html;
+ return $answer, heading => $heading, html => $html;
}
return;
};
View
@@ -15,10 +15,10 @@ ddg_goodie_test(
)],
'unicornify example@example.com' =>
test_zci('This is a unique unicorn for example@example.com:' . "\n" . 'Learn more at unicornify.appspot.com',
- header => 'example@example.com (Unicornify)',
+ heading => 'example@example.com (Unicornify)',
html => 'This is a unique unicorn for example@example.com:'
.'<br /><a href="'.unicornify_url(email => 'example@example.com', size => 128).'">'
.'<img src="'.unicornify_url(email=>'example@example.com', size => 100).'" style="margin: 10px 0px 10px 20px; border-radius: 8px;" /></a>'
- . '<br /><a href="http://unicornify.appspot.com/">Learn more at unicornify.appspot.com</a>'));
+ . 'Learn more at <a href="http://unicornify.appspot.com/">unicornify.appspot.com</a>'));
done_testing;

0 comments on commit 5bf0f09

Please sign in to comment.