浏览代码

Perhaps I should just give up.

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

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

@@ -111,7 +111,7 @@ class Dictionary(Command):
fullnames = [basename, "\{\{" + basename + "\}\}",
"\{\{" + basename.lower() + "\}\}"]
for fullname in fullnames:
regex = blocks + "\s*\{\{" + fullname + "\}\}\s*" + blocks
regex = blocks + "\s*" + fullname + "\s*" + blocks
if re.search(regex, section):
regex = blocks + "\s*" + fullname
regex += "\s*{0}(.*?)(?:(?:{0})|\Z)".format(blocks)


正在加载...
取消
保存