Add support for 'colour' form
parent
32942acfd8
commit
a95a74a5b0
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue