소스 검색

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 = []


불러오는 중...
취소
저장