Frequency: Reverting last two commits

master
sdua 2016-07-06 20:04:48 +00:00
parent b524a56e50
commit 80d837cd65
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ use DDG::Goodie;
triggers start => 'frequency', 'freq';
handle remainder => sub {
if ($_ =~ /^of ([a-z]|(?:all ?|)(?:letters|characters|chars|alphabets|)) in ([\w\s]+)/i) {
if ($_ =~ /^of ([a-z]|(?:all ?|)(?:letters|characters|chars|alphabets|)) in (.+)/i) {
my $collect_exact = $1;
my $collect = lc $1;

View File

@ -76,7 +76,7 @@ ddg_goodie_test(
't' => 2
}, ['e', 's', 't']),
'frequency of all in testing 1234 ABC!' => build_test('a:1/10 b:1/10 c:1/10 e:1/10 g:1/10 i:1/10 n:1/10 s:1/10 t:2/10', "testing 1234 ABC", "$all_chars_subtitle", {
'frequency of all in testing 1234 ABC!' => build_test('a:1/10 b:1/10 c:1/10 e:1/10 g:1/10 i:1/10 n:1/10 s:1/10 t:2/10', "testing 1234 ABC!", "$all_chars_subtitle", {
'a' => 1,
'b' => 1,
'c' => 1,