Skip to content

Commit

Permalink
Merge pull request #29 from team-plain/additional-spanish
Browse files Browse the repository at this point in the history
Spanish icloud support
  • Loading branch information
turt2live authored Mar 18, 2022
2 parents cb89675 + de451de commit c7aeff3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const QUOTE_REGEX = />+$/;
const QUOTE_HEADERS_REGEX = [
/^\s*(On(?:(?!.*On\b|\bwrote:)[\s\S])+wrote:)$/m, // On DATE, NAME <EMAIL> wrote:
/^\s*(Le(?:(?!.*Le\b|\bécrit:)[\s\S])+écrit(\s|\xc2\xa0):)$/m, // On DATE, NAME <EMAIL> wrote:
/^\s*(El(?:(?!.*El\b|\bescribió:)[\s\S])+escribió:)$/m, // On DATE, NAME <EMAIL> wrote:
/^\s*(El(?:(?!.*El\b|\bescribió:)[\s\S])+escribi(ó|eron):)$/m, // On DATE, NAME <EMAIL> wrote:
/^\s*(Il(?:(?!.*Il\b|\bscritto:)[\s\S])+scritto:)$/m, // On DATE, NAME <EMAIL> wrote:
/^\s*(Op\s[\S\s]+?(schreef|geschreven)[\S\s]+:)$/m, // Op DATE schreef NAME <EMAIL>:, Op DATE heeft NAME <EMAIL> het volgende geschreven:
/^\s*(Em(?:(?!.*Em\b|\bescreveu:)[\s\S])+escreveu:)$/m, // Em DATE, NAME <EMAIL> escreveu:
Expand Down
1 change: 1 addition & 0 deletions test/ParserTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const DATE_FORMATS = [
'2014-03-09 20:48 GMT+01:00 Rémi Dolan <[email protected]>:', // Gmail
'Le 19 mars 2014 10:37, Cédric Lombardot <[email protected]> a écrit :', // Gmail
'El 19/03/2014 11:34, Juan Pérez <[email protected]> escribió:', // Gmail in spanish
'El 19/03/2014 11:34, Juan Pérez <[email protected]> escribieron:', // iCloud in spanish
'Em ter., 01 de mar. de 2011 às 18:02, Abhishek <[email protected]> escreveu:', // Gmail in PT-BR
'W dniu 7 stycznia 2015 15:24 użytkownik Paweł Brzoski <[email protected]> napisał:', //Gmail in polish
'Le 19/03/2014 11:34, Georges du chemin a écrit :', // Thunderbird
Expand Down

0 comments on commit c7aeff3

Please sign in to comment.