0
0
mirror of https://github.com/PHPMailer/PHPMailer.git synced 2024-09-20 01:52:15 +02:00

Improve simple messageid regex for default pattern

This commit is contained in:
Marcus Bointon 2021-06-28 10:54:41 +02:00
parent cb25751853
commit 84325b80b3
No known key found for this signature in database
GPG Key ID: DE31CD6EB646AA24

View File

@ -106,6 +106,6 @@ final class GetLastMessageIDTest extends TestCase
$this->buildBody();
$this->Mail->preSend();
$lastid = $this->Mail->getLastMessageID();
self::assertMatchesRegularExpression('/^<.*@.*>$/', $lastid, 'Invalid default Message ID');
self::assertMatchesRegularExpression('/^<.+@.+>$/D', $lastid, 'Invalid default Message ID');
}
}