From ddc3f3c9ab95471e481fa1c71c5b23b787cd6c84 Mon Sep 17 00:00:00 2001 From: kbhat95 Date: Tue, 16 Jun 2015 06:34:44 +0000 Subject: [PATCH] enable ml to ounces trigger --- lib/DDG/Goodie/Conversions.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DDG/Goodie/Conversions.pm b/lib/DDG/Goodie/Conversions.pm index eb296f238..85bb76813 100755 --- a/lib/DDG/Goodie/Conversions.pm +++ b/lib/DDG/Goodie/Conversions.pm @@ -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/;