Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Added 'capitalize' to TitleCase triggers.
Browse files Browse the repository at this point in the history
  • Loading branch information
melon3r committed Jun 15, 2014
1 parent 0a5735c commit a3f71d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DDG/Goodie/TitleCase.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
1 change: 1 addition & 0 deletions t/TitleCase.t
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
);

Expand Down

0 comments on commit a3f71d8

Please sign in to comment.