Browse Source

More sophisticated regex for parsing links.

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

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

@@ -128,7 +128,7 @@ class Dictionary(Command):
def parse_body(self, body):
substitutions = [
("<!--(.*?)-->", ""),
("\[\[(.*?)\|(.*?)\]\]", r"\2"),
("\[\[[^\]|]*?\|([^\]|]*?)\]\]", r"\1"),
("\{\{(.*?) of\|(.*?)\}\}", r"\1 of \2."),
("\{\{w\|(.*?)\}\}", r"\1"),
("\{\{surname(.*?)\}\}", r"A surname."),


Loading…
Cancel
Save