From b4c180b9ff5e1a2b9bddb6dab80bf0551719ea25 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 15 Apr 2015 13:55:59 +0200 Subject: [PATCH] Extra spaces check in RE_ON_DATE_WROTE_SMB reggae --- talon/quotations.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/talon/quotations.py b/talon/quotations.py index 28914f2..dc77fd4 100644 --- a/talon/quotations.py +++ b/talon/quotations.py @@ -56,16 +56,13 @@ RE_ON_DATE_SMB_WROTE = re.compile( )) # Special case for languages where text is translated like this: 'on {date} wrote {somebody}:' RE_ON_DATE_WROTE_SMB = re.compile( - u'(-*[ ]?({0}).*(.*\n){{0,2}}.*({1}).*:)'.format( + u'(-*[ ]?({0})[ ].*(.*\n){{0,2}}.*({1})[ ].*:)'.format( # Beginning of the line - u'|'.join(( - # Dutch - 'Op' - )), + 'Op', # Ending of the line u'|'.join(( # Dutch - 'schreef' + 'schreef','verzond','geschreven' )) ) )