Added 'capitalize' to TitleCase triggers.

master
gdrooid 2014-06-15 12:07:08 +02:00
parent 0a5735c57b
commit a3f71d874c
2 changed files with 2 additions and 1 deletions

View File

@ -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';

View File

@ -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'),
);