enable ml to ounces trigger
parent
0ab70a1345
commit
ddc3f3c9ab
|
@ -78,7 +78,7 @@ handle query_lc => sub {
|
|||
$_ =~ s/ degrees (celsius|fahrenheit)/ $1/;
|
||||
|
||||
# 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
|
||||
return unless $_ =~ /$guard/;
|
||||
|
|
Loading…
Reference in New Issue