Browse Source

Fix unmatched groups.

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

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

@@ -131,10 +131,10 @@ class Dictionary(Command):
("<!--(.*?)-->", ""), ("<!--(.*?)-->", ""),
("\[\[[^\]|]*?\|([^\]|]*?)\]\]", r"\1"), ("\[\[[^\]|]*?\|([^\]|]*?)\]\]", r"\1"),
("\{\{unsupported\|(.*?)\}\}", r"\1"), ("\{\{unsupported\|(.*?)\}\}", r"\1"),
("\{\{(.*?) of\|([^}|]*?)\||(?:\}\})", r"\1 of \2."),
("\{\{(.*?) of\|([^}|]*?)(\||(\}\}))", r"\1 of \2."),
("\{\{w\|(.*?)\}\}", r"\1"), ("\{\{w\|(.*?)\}\}", r"\1"),
("\{\{surname(.*?)\}\}", r"A surname."), ("\{\{surname(.*?)\}\}", r"A surname."),
("\{\{given name\|([^}|]*?)\||(?:\}\})", r"A \1 given name."),
("\{\{given name\|([^}|]*?)(\||(\}\}))", r"A \1 given name."),
] ]


senses = [] senses = []


Loading…
Cancel
Save