From a3f71d874c997a332df82150bd5c4091d5567585 Mon Sep 17 00:00:00 2001 From: gdrooid Date: Sun, 15 Jun 2014 12:07:08 +0200 Subject: [PATCH] Added 'capitalize' to TitleCase triggers. --- lib/DDG/Goodie/TitleCase.pm | 2 +- t/TitleCase.t | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/DDG/Goodie/TitleCase.pm b/lib/DDG/Goodie/TitleCase.pm index 6f21ed531..74fc04d2c 100644 --- a/lib/DDG/Goodie/TitleCase.pm +++ b/lib/DDG/Goodie/TitleCase.pm @@ -2,7 +2,7 @@ package DDG::Goodie::TitleCase; use DDG::Goodie; -triggers startend => 'titlecase', 'ucfirst', 'title case'; +triggers startend => 'titlecase', 'ucfirst', 'title case', 'capitalize'; primary_example_queries 'titlecase test'; description 'return the query in title case'; diff --git a/t/TitleCase.t b/t/TitleCase.t index 4800c5464..200572e7a 100644 --- a/t/TitleCase.t +++ b/t/TitleCase.t @@ -16,6 +16,7 @@ ddg_goodie_test( 'titlecase this is a walk in the park' => test_zci('This Is a Walk in the Park'), 'titlecase a good day to die hard' => test_zci('A Good Day to Die Hard'), 'titlecase here i am testing-hyphenated-words' => test_zci('Here I Am Testing-Hyphenated-Words'), + 'capitalize this should be capitalized' => test_zci('This Should Be Capitalized'), 'titlecase test' => test_zci('Test'), );