瀏覽代碼

Er, fix that.

tags/v0.1^2
Ben Kurtovic 12 年之前
父節點
當前提交
e5b857d20c
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      earwigbot/commands/dictionary.py

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

@@ -110,8 +110,8 @@ class Dictionary(Command):
for part, fullname in parts_of_speech.iteritems():
regexes = [
"{0}\s*{1}\s*{0}".format(blocks, fullname),
"{0}\s*\{\{{1}\}\}\s*{0}".format(blocks, fullname),
"{0}\s*\{\{{1}\}\}\s*{0}".format(blocks, fullname.lower()),
blocks + "\s*\{\{" + fullname + "\}\}\s*" + blocks,
blocks + "\s*\{\{" + fullname.lower() + "\}\}\s*" + blocks,
]
for regex in regex:
if re.search(regex, section):


Loading…
取消
儲存