ソースを参照

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


読み込み中…
キャンセル
保存