mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Google: Apply gholms's patch to fix @calc match.
This commit is contained in:
parent
a93750bad7
commit
cf8126223b
@ -327,7 +327,7 @@ class Google(callbacks.PluginRegexp):
|
|||||||
url = r'http://google.com/search?q=' + s
|
url = r'http://google.com/search?q=' + s
|
||||||
return url
|
return url
|
||||||
|
|
||||||
_calcRe = re.compile(r'<h\d class="?r"?.*?<b>(.*?)</b>', re.I)
|
_calcRe = re.compile(r'<h\d class="?r"?[^>]*>(?:<b>)?(.*?)(?:</b>)?</h\d>', re.I | re.S)
|
||||||
_calcSupRe = re.compile(r'<sup>(.*?)</sup>', re.I)
|
_calcSupRe = re.compile(r'<sup>(.*?)</sup>', re.I)
|
||||||
_calcFontRe = re.compile(r'<font size=-2>(.*?)</font>')
|
_calcFontRe = re.compile(r'<font size=-2>(.*?)</font>')
|
||||||
_calcTimesRe = re.compile(r'&(?:times|#215);')
|
_calcTimesRe = re.compile(r'&(?:times|#215);')
|
||||||
|
Loading…
Reference in New Issue
Block a user