From b9e91851155dce1e900ce90237578e858e288fe9 Mon Sep 17 00:00:00 2001 From: Lucas Hinderberger Date: Thu, 4 Jul 2024 13:42:48 +0200 Subject: [PATCH] email test: Adapting timestamp regex to more timezones --- test/email/expected_index.json | 2 +- test/email/expected_metadata.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/email/expected_index.json b/test/email/expected_index.json index 5abbb3c..66edbdf 100644 --- a/test/email/expected_index.json +++ b/test/email/expected_index.json @@ -8,7 +8,7 @@ "idx": 0, "isMultipart": true, "receivedAt:control": { - "match": "[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]+\\+[0-9]{2}:[0-9]{2}" + "match": "[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]+(((\\+|\\-)[0-9]{2}:[0-9]{2})|Z)" }, "smtpFrom": "testsender123@programmfabrik.de", "smtpRcptTo": [ diff --git a/test/email/expected_metadata.json b/test/email/expected_metadata.json index 3222036..9db4898 100644 --- a/test/email/expected_metadata.json +++ b/test/email/expected_metadata.json @@ -89,7 +89,7 @@ ], "multipartsCount": 2, "receivedAt:control": { - "match": "[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]+\\+[0-9]{2}:[0-9]{2}" + "match": "[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]+(((\\+|\\-)[0-9]{2}:[0-9]{2})|Z)" }, "smtpFrom": "testsender123@programmfabrik.de", "smtpRcptTo": [