mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-26 13:01:07 -05:00
Wikifetch: strip inline notes in the form "text[note 1]" from IRC
This commit is contained in:
parent
199da6e851
commit
9986babd2e
@ -241,8 +241,8 @@ class Wikifetch(callbacks.Plugin):
|
||||
reply += format('%s %s %u', p, _('Retrieved from'), addr)
|
||||
reply = reply.replace('&','&')
|
||||
|
||||
# Remove inline citations (text[1][2][3], etc.)
|
||||
reply = re.sub('\[\d+\]', '', reply)
|
||||
# Remove inline citations (text[1][2][3]) as well as inline notes (text[note 1]).
|
||||
reply = re.sub('\[[a-z ]*?\d+\]', '', reply)
|
||||
|
||||
return reply
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user