Pārlūkot izejas kodu

Oh god this is pathetic.

tags/v0.1^2
Ben Kurtovic pirms 12 gadiem
vecāks
revīzija
410c7b3642
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      earwigbot/commands/dictionary.py

+ 2
- 2
earwigbot/commands/dictionary.py Parādīt failu

@@ -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):


Notiek ielāde…
Atcelt
Saglabāt