Skip to content

Commit cb9e5ca

Browse files
authored
Merge pull request #90 from michaelarnauts/grab-matches-from-email-quoted
Fix grabMatchesFromEmail() by decoding source
2 parents 7dad8c3 + d1363bf commit cb9e5ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Module/MailCatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ protected function dontSeeInEmail(Email $email, string $unexpected): void
435435

436436
protected function grabMatchesFromEmail(Email $email, string $regex): array
437437
{
438-
preg_match($regex, $email->getSource(), $matches);
438+
preg_match($regex, $email->getSourceQuotedPrintableDecoded(), $matches);
439439
$this->assertNotEmpty($matches, "No matches found for $regex");
440440
return $matches;
441441
}

0 commit comments

Comments
 (0)