diff --git a/plugins/Google/plugin.py b/plugins/Google/plugin.py index 819d71684..5a6662326 100644 --- a/plugins/Google/plugin.py +++ b/plugins/Google/plugin.py @@ -370,7 +370,7 @@ class Google(callbacks.PluginRegexp): _calcRe = re.compile(r'(.*?)', re.I) _calcSupRe = re.compile(r'(.*?)', re.I) _calcFontRe = re.compile(r'(.*?)') - _calcTimesRe = re.compile(r'×') + _calcTimesRe = re.compile(r'&(?:times|#215);') def calc(self, irc, msg, args, expr): """ diff --git a/plugins/Google/test.py b/plugins/Google/test.py index 9735c4609..f45019f05 100644 --- a/plugins/Google/test.py +++ b/plugins/Google/test.py @@ -32,6 +32,9 @@ from supybot.test import * class GoogleTestCase(ChannelPluginTestCase): plugins = ('Google',) if network: + def testCalcHandlesMultiplicationSymbol(self): + self.assertNotRegexp('google calc seconds in a century', r'215') + def testCalc(self): self.assertNotRegexp('google calc e^(i*pi)+1', r'didn\'t')