diff --git a/plugins/Google/plugin.py b/plugins/Google/plugin.py index a78b1d981..f9b2fa0fd 100644 --- a/plugins/Google/plugin.py +++ b/plugins/Google/plugin.py @@ -332,7 +332,7 @@ class Google(callbacks.PluginRegexp): url = r'http://google.com/search?q=' + s return url - _calcRe = re.compile(r'(.*?)', re.I) + _calcRe = re.compile(r'(.*?)', re.I) _calcSupRe = re.compile(r'(.*?)', re.I) _calcFontRe = re.compile(r'(.*?)') _calcTimesRe = re.compile(r'&(?:times|#215);') diff --git a/plugins/Google/test.py b/plugins/Google/test.py index 695e95037..92b7aeee0 100644 --- a/plugins/Google/test.py +++ b/plugins/Google/test.py @@ -38,6 +38,7 @@ class GoogleTestCase(ChannelPluginTestCase): def testCalc(self): self.assertNotRegexp('google calc e^(i*pi)+1', r'didn\'t') + self.assertNotRegexp('google calc 1 usd in gbp', r'didn\'t') def testHtmlHandled(self): self.assertNotRegexp('google calc '