Pārlūkot izejas kodu

More sophisticated regex for parsing links.

tags/v0.1^2
Ben Kurtovic pirms 12 gadiem
vecāks
revīzija
7cda82546a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      earwigbot/commands/dictionary.py

+ 1
- 1
earwigbot/commands/dictionary.py Parādīt failu

@@ -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."),


Notiek ielāde…
Atcelt
Saglabāt