From b46cdfec5a3e49bbe26c81d79b0444320dffb225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 18 Feb 2016 12:45:30 +0200 Subject: [PATCH] fix usenet official signature. #44 --- src/EmailReplyParser/Parser/EmailParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EmailReplyParser/Parser/EmailParser.php b/src/EmailReplyParser/Parser/EmailParser.php index 1fe785c..5017606 100644 --- a/src/EmailReplyParser/Parser/EmailParser.php +++ b/src/EmailReplyParser/Parser/EmailParser.php @@ -21,7 +21,7 @@ class EmailParser /** * Regex to match signatures */ - const SIG_REGEX = '/(?:^\s*--|^\s*__|^-\w|^-- )|(?:^Sent from my (?:\s*\w+){1,3})$/s'; + const SIG_REGEX = '/(?:^\s*--|^\s*__|^-\w|^-- $)|(?:^Sent from my (?:\s*\w+){1,3})$/s'; const QUOTE_REGEX = '/>+$/s';