Skip to content

Commit c7aeff3

Browse files
authored
Merge pull request #29 from team-plain/additional-spanish
Spanish icloud support
2 parents cb89675 + de451de commit c7aeff3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/Parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const QUOTE_REGEX = />+$/;
2828
const QUOTE_HEADERS_REGEX = [
2929
/^\s*(On(?:(?!.*On\b|\bwrote:)[\s\S])+wrote:)$/m, // On DATE, NAME <EMAIL> wrote:
3030
/^\s*(Le(?:(?!.*Le\b|\bécrit:)[\s\S])+écrit(\s|\xc2\xa0):)$/m, // On DATE, NAME <EMAIL> wrote:
31-
/^\s*(El(?:(?!.*El\b|\bescribió:)[\s\S])+escribió:)$/m, // On DATE, NAME <EMAIL> wrote:
31+
/^\s*(El(?:(?!.*El\b|\bescribió:)[\s\S])+escribi(ó|eron):)$/m, // On DATE, NAME <EMAIL> wrote:
3232
/^\s*(Il(?:(?!.*Il\b|\bscritto:)[\s\S])+scritto:)$/m, // On DATE, NAME <EMAIL> wrote:
3333
/^\s*(Op\s[\S\s]+?(schreef|geschreven)[\S\s]+:)$/m, // Op DATE schreef NAME <EMAIL>:, Op DATE heeft NAME <EMAIL> het volgende geschreven:
3434
/^\s*(Em(?:(?!.*Em\b|\bescreveu:)[\s\S])+escreveu:)$/m, // Em DATE, NAME <EMAIL> escreveu:

test/ParserTest.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const DATE_FORMATS = [
2323
'2014-03-09 20:48 GMT+01:00 Rémi Dolan <[email protected]>:', // Gmail
2424
'Le 19 mars 2014 10:37, Cédric Lombardot <[email protected]> a écrit :', // Gmail
2525
'El 19/03/2014 11:34, Juan Pérez <[email protected]> escribió:', // Gmail in spanish
26+
'El 19/03/2014 11:34, Juan Pérez <[email protected]> escribieron:', // iCloud in spanish
2627
'Em ter., 01 de mar. de 2011 às 18:02, Abhishek <[email protected]> escreveu:', // Gmail in PT-BR
2728
'W dniu 7 stycznia 2015 15:24 użytkownik Paweł Brzoski <[email protected]> napisał:', //Gmail in polish
2829
'Le 19/03/2014 11:34, Georges du chemin a écrit :', // Thunderbird

0 commit comments

Comments
 (0)