Преглед на файлове

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)


Зареждане…
Отказ
Запис