Explorar el Código

Er, fix that.

tags/v0.1^2
Ben Kurtovic hace 12 años
padre
commit
e5b857d20c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      earwigbot/commands/dictionary.py

+ 2
- 2
earwigbot/commands/dictionary.py Ver fichero

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


Cargando…
Cancelar
Guardar