]> gitweb.pimeys.fr Git - bots/basile.git/commitdiff
un apostrophe, une
authorVincent Le Gallic <legallic@crans.org>
Wed, 2 May 2012 16:54:13 +0000 (18:54 +0200)
committerVincent Le Gallic <legallic@crans.org>
Wed, 2 May 2012 16:54:13 +0000 (18:54 +0200)
basile.py

index 51304ed80cc21d1353b4f86a91dea40c1ef3c627..14769c36df39f086feb371bf84601985faf20fdc 100755 (executable)
--- a/basile.py
+++ b/basile.py
@@ -335,7 +335,7 @@ class Basile(ircbot.SingleServerIRCBot):
                        u"bien plein(|e|s|es)":u"bien pleine",
                        u"innocent(|e|s|es)":u"innocente"}
             adj_reg=u"(?P<adjectif>"+u"|".join(adjectifs.keys())+u")"
-            reg=u".*(^| )"+debuts+u" "+adj_reg+u"($|,|;|\.| ).*"
+            reg=u".*(^| |')"+debuts+u" "+adj_reg+u"($|,|;|\.| ).*"
             matched=re.match(reg,message)
             if matched:
                 # il faut repasser l'adjectif au fĂ©minin singulier