浏览代码

Oh god this is pathetic.

tags/v0.1^2
Ben Kurtovic 12 年前
父节点
当前提交
410c7b3642
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      earwigbot/commands/dictionary.py

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

@@ -108,8 +108,8 @@ class Dictionary(Command):
blocks = "=" * (level + 1)
defs = []
for part, basename in parts_of_speech.iteritems():
fullnames = [fullname, "\{\{" + fullname + "\}\}",
"\{\{" + fullname.lower() + "\}\}"]
fullnames = [basename, "\{\{" + basename + "\}\}",
"\{\{" + basename.lower() + "\}\}"]
for fullname in fullnames:
regex = blocks + "\s*\{\{" + fullname + "\}\}\s*" + blocks
if re.search(regex, section):


正在加载...
取消
保存