Skip to content

Commit

Permalink
Merge pull request #30 from pbrzoski/master
Browse files Browse the repository at this point in the history
Added quote header regex for polish
  • Loading branch information
willdurand committed Jan 7, 2015
2 parents b06c6a4 + 6b7e558 commit 799d08e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/EmailReplyParser/Parser/EmailParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class EmailParser
'/^(On\s.+wrote:)$/ms', // On DATE, NAME <EMAIL> wrote:
'/^(Le\s.+écrit :)$/ms', // Le DATE, NAME <EMAIL> a écrit :
'/^(El\s.+escribió:)$/ms', // El DATE, NAME <EMAIL> escribió:
'/^(W dniu\s.+(pisze|napisał):)$/ms', // W dniu DATE, NAME <EMAIL> pisze|napisał:
'/^(20[0-9]{2}\-(?:0?[1-9]|1[012])\-(?:0?[1-2][0-9]|3[01]|[1-9])\s[0-2]?[0-9]:\d{2}\s.+:)$/ms', // 20YY-MM-DD HH:II GMT+01:00 NAME <EMAIL>:
);

Expand Down
2 changes: 2 additions & 0 deletions tests/EmailReplyParser/Tests/Parser/EmailParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ public function getDateFormats()
array('2014-03-20 20:48 GMT+01:00 Rémi Dolan <[email protected]>:'), // Gmail
array('Le 19 mars 2014 10:37, Cédric Lombardot <[email protected]> a écrit :'), // Gmail
array('El 19/03/2014 11:34, Juan Pérez <[email protected]> escribió:'), // Gmail in spanish
array('W dniu 7 stycznia 2015 15:24 użytkownik Paweł Brzoski <[email protected]> napisał:'), //Gmail in polish
array('Le 19/03/2014 11:34, Georges du chemin a écrit :'), // Thunderbird
array('W dniu 2015-01-07 14:23, [email protected] pisze: '), // Thunderbird in polish
);
}
}

0 comments on commit 799d08e

Please sign in to comment.