瀏覽代碼

Fixing regex more.

tags/v0.1^2
Ben Kurtovic 12 年之前
父節點
當前提交
f63312752f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      earwigbot/commands/dictionary.py

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

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

senses = []


Loading…
取消
儲存