Browse Source

Strip reference tags.

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
3de52a915b
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      earwigbot/commands/dictionary.py

+ 1
- 0
earwigbot/commands/dictionary.py View File

@@ -129,6 +129,7 @@ class Dictionary(Command):
def parse_body(self, body): def parse_body(self, body):
substitutions = [ substitutions = [
("<!--(.*?)-->", ""), ("<!--(.*?)-->", ""),
("<ref>(.*?)</ref>", ""),
("\[\[[^\]|]*?\|([^\]|]*?)\]\]", r"\1"), ("\[\[[^\]|]*?\|([^\]|]*?)\]\]", r"\1"),
("\{\{unsupported\|(.*?)\}\}", r"\1"), ("\{\{unsupported\|(.*?)\}\}", r"\1"),
("\{\{(.*?) of\|([^}|]*?)(\|(.*?))?\}\}", r"\1 of \2."), ("\{\{(.*?) of\|([^}|]*?)(\|(.*?))?\}\}", r"\1 of \2."),


Loading…
Cancel
Save