]> gitweb.pimeys.fr Git - bots/parrot.git/blobdiff - config.py
Regexp avec le flag UNICODE histoire de matcher correctement les espaces insécables
[bots/parrot.git] / config.py
index 25347ca2544ea21085ccdd2d9aa44804f291df17..ad2d89751c20e03ca3e01b6f3d6a09a4f07c884e 100644 (file)
--- a/config.py
+++ b/config.py
@@ -117,7 +117,7 @@ helpmsg_overops = u" SAY DO STAY NOSTAY OPS OVEROPS KICK DIE CRASH RESTORE"
 blacklisted_masks = [("Flo!*@*", [])]
 
 #: Regexp utilisée pour parser des quotes
-quote_regexp = ur"""\s*(?:"|«|')\s*(?P<content>.+?)\s*(?:"|»|') ?~ ?(?P<author>.+?)\s*(?:$|\n)"""
+quote_regexp = ur"""\s*(?:"|«|')\s*(?P<content>.+?)\s*(?:"|»|')\s*~\s*(?P<author>.+?)\s*(?:$|\n)"""
 
 #: Regexp utlisée pour parser une quote avec timestamp
 quote_regexp_with_timestamp = ur"(?P<timestamp>.{19}) " + quote_regexp