This commit is contained in:
Neil 2023-05-08 20:41:40 -07:00
parent b670e7f822
commit caf6924d0a
1 changed files with 4 additions and 2 deletions

View File

@ -222,9 +222,11 @@ static int scan_day(struct scan *const scan, union date32 date,
<bracket> "idea: " :=> idea
<bracket> "vaccine: " :=> vaccine
<bracket> "tax: " :=> tax
/* Whatsapp messages ignored. [11-03, 04:19] Contact: massage */
/* Whatsapp messages ignored. [11-03, 04:19] Contact: massage
Hopefully they don't have a ':' in their name. */
<bracket> [0-1][0-9] "-" [0-3][0-9] ", " [0-2][0-9] ":" [0-5][0-9] "] "
@s0 [^\x00\n:] @s1 ": " [^\x00\n] "\n" => line {
@s0 [^\x00\n:]+ @s1 ":" [^\x00\n]* "\n" => line {
line++;
fprintf(stderr, "Whatsapp message from %.*s ignored.\n",
(int)(s1 - s0), s0);
continue;