In character classes, dots are not escaped. 

----- Original Message -----

From: "Jag Talon" <notifications@github.com> 
To: "duckduckgo/zeroclickinfo-goodies" <zeroclickinfo-goodies@noreply.github.com> 
Cc: "hollingsworthd" <ops@machinepublishers.com> 
Sent: Thursday, November 21, 2013 4:38:55 PM 
Subject: Re: [zeroclickinfo-goodies] Frequency Spectrum (#252) 



In lib/DDG/Goodie/FrequencySpectrum.pm: 
> +
> +zci is_cached => 1;
> +zci answer_type => "frequency_spectrum";
> +
> +primary_example_queries '50 hz';
> +secondary_example_queries '400 thz';
> +description 'Returns information about light, radio, and sound frequencies';
> +name 'FrequencySpectrum';
> +code_url 'https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/FrequencySpectrum.pm';
> +category 'physical_properties';
> +topics 'science';
> +attribution web => "https://machinepublishers.com",
> +            twitter => 'machinepub';
> +
> +handle query => sub {
> +  return unless $_ =~ m/^[\d,.]+\s\w+$/; 


Should probably be [\d,\.] (backslash before the period). 

— 
Reply to this email directly or view it on GitHub .