瀏覽代碼

Strip reference tags.

tags/v0.1^2
Ben Kurtovic 12 年之前
父節點
當前提交
3de52a915b
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      earwigbot/commands/dictionary.py

+ 1
- 0
earwigbot/commands/dictionary.py 查看文件

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


Loading…
取消
儲存