1
0
Fork 0

Birthday module: fix regexp string used

This commit is contained in:
nemunaire 2014-08-13 15:25:29 +02:00
parent 1464f92c87
commit 21dadaa169
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ def cmd_age(msg):
return True
def parseask(msg):
if re.match("^.*(date de naissance|birthday|geburtstag|née? |nee? le|born on).*$", msgl, re.I) is not None:
if re.match("^.*(date de naissance|birthday|geburtstag|née? |nee? le|born on).*$", msg.content, re.I) is not None:
try:
extDate = msg.extractDate()
if extDate is None or extDate.year > datetime.now().year: