enable ml to ounces trigger

master
kbhat95 2015-06-16 06:34:44 +00:00
parent 0ab70a1345
commit ddc3f3c9ab
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ handle query_lc => sub {
$_ =~ s/ degrees (celsius|fahrenheit)/ $1/; $_ =~ s/ degrees (celsius|fahrenheit)/ $1/;
# hack - convert "oz" to "fl oz" if "ml" contained in query # hack - convert "oz" to "fl oz" if "ml" contained in query
s/oz/fl oz/ if(/ml/ && not /fl oz/); s/(oz|ounces)/fl oz/ if(/ml/ && not /fl oz/);
# guard the query from spurious matches # guard the query from spurious matches
return unless $_ =~ /$guard/; return unless $_ =~ /$guard/;