From 494cb317d14ff6d0f439177cb4e5ef8be59729d4 Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 26 Sep 2024 09:54:44 +1000 Subject: [PATCH] Fix for parsing a netmail path that is 5D but without a .0 for a boss --- app/Models/Netmail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Netmail.php b/app/Models/Netmail.php index 75c1c4f..221f203 100644 --- a/app/Models/Netmail.php +++ b/app/Models/Netmail.php @@ -21,7 +21,7 @@ final class Netmail extends Model implements Packet private const LOGKEY = 'MN-'; public const UPDATED_AT = NULL; - private const PATH_REGEX = '/^([0-9]+:[0-9]+\/[0-9]+(\..*)?)\s+@([0-9.a-zA-Z]+)\s+(.*)$/'; + private const PATH_REGEX = '/^([0-9]+:[0-9]+\/[0-9]+(\.?[0-9@a-zA-Z]*)?)\s+@([0-9.a-zA-Z]+)\s+(.*)$/'; /** * Kludges that we absorb in this model