Add support for 'colour' form

master
Ben Moon 2016-07-05 09:38:04 +01:00
parent 32942acfd8
commit a95a74a5b0
2 changed files with 4 additions and 2 deletions

View File

@ -13,9 +13,9 @@ zci answer_type => 'rgb_color';
zci is_cached => 0;
triggers any => 'color';
triggers any => 'color', 'colour';
my $color_re = 'color';
my $color_re = 'colou?r';
my %query_forms = (
"random $color_re" => \&random_color,

View File

@ -43,6 +43,8 @@ ddg_goodie_test(
[qw( DDG::Goodie::RgbColor )],
# Random colors
'random color' => build_test(),
# Using 'colour'
'random colour' => build_test(),
);
done_testing;