Skip to content

Commit

Permalink
Merge pull request #73 from Spone/patch-1
Browse files Browse the repository at this point in the history
Change FR regex to accept nbsp before `:`
  • Loading branch information
willdurand committed Mar 24, 2020
2 parents bb95bc5 + b71d998 commit 642bec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EmailReplyParser/Parser/EmailParser.php
Expand Up @@ -32,7 +32,7 @@ class EmailParser
*/
private $quoteHeadersRegex = array(
'/^\s*(On(?:(?!^>*\s*On\b|\bwrote:).){0,1000}wrote:)$/ms', // On DATE, NAME <EMAIL> wrote:
'/^\s*(Le(?:(?!^>*\s*Le\b|\bécrit:).){0,1000}écrit :)$/ms', // Le DATE, NAME <EMAIL> a écrit :
'/^\s*(Le(?:(?!^>*\s*Le\b|\bécrit:).){0,1000}écrit(\s|\xc2\xa0):)$/ms', // Le DATE, NAME <EMAIL> a écrit :
'/^\s*(El(?:(?!^>*\s*El\b|\bescribió:).){0,1000}escribió:)$/ms', // El DATE, NAME <EMAIL> escribió:
'/^\s*(Il(?:(?!^>*\s*Il\b|\bscritto:).){0,1000}scritto:)$/ms', // Il DATE, NAME <EMAIL> ha scritto:
'/^[\S\s]+ (написа(л|ла|в)+)+:$/msu', // Everything before написал: not ending on wrote:
Expand Down

0 comments on commit 642bec1

Please sign in to comment.