Skip to content

Commit

Permalink
Merge pull request #90 from michaelarnauts/grab-matches-from-email-qu…
Browse files Browse the repository at this point in the history
…oted

Fix grabMatchesFromEmail() by decoding source
  • Loading branch information
Jamesking56 authored Jun 8, 2022
2 parents 7dad8c3 + d1363bf commit cb9e5ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Module/MailCatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cb9e5ca

Please sign in to comment.