diff --git a/Wikifetch/plugin.py b/Wikifetch/plugin.py index 390c201..b95a5e9 100644 --- a/Wikifetch/plugin.py +++ b/Wikifetch/plugin.py @@ -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