diff --git a/src/Module/MailCatcher.php b/src/Module/MailCatcher.php index 0841394..688ff9c 100644 --- a/src/Module/MailCatcher.php +++ b/src/Module/MailCatcher.php @@ -435,7 +435,7 @@ protected function dontSeeInEmail(Email $email, string $unexpected): void protected function grabMatchesFromEmail(Email $email, string $regex): array { - preg_match($regex, $email->getSource(), $matches); + preg_match($regex, $email->getSourceQuotedPrintableDecoded(), $matches); $this->assertNotEmpty($matches, "No matches found for $regex"); return $matches; }