Преглед изворни кода

More sophisticated regex for parsing links.

tags/v0.1^2
Ben Kurtovic пре 12 година
родитељ
комит
7cda82546a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      earwigbot/commands/dictionary.py

+ 1
- 1
earwigbot/commands/dictionary.py Прегледај датотеку

@@ -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…
Откажи
Сачувај