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
1 changed files with 1 additions and 1 deletions

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');
}
}