We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Message::bodySummary
preg_match
1 parent 9f925b5 commit 3f849aaCopy full SHA for 3f849aa
src/Message.php
@@ -77,7 +77,7 @@ public static function bodySummary(MessageInterface $message, int $truncateAt =
77
78
// Matches any printable character, including unicode characters:
79
// letters, marks, numbers, punctuation, spacing, and separators.
80
- if (preg_match('/[^\pL\pM\pN\pP\pS\pZ\n\r\t]/u', $summary)) {
+ if (preg_match('/[^\pL\pM\pN\pP\pS\pZ\n\r\t]/u', $summary) !== 0) {
81
return null;
82
}
83
0 commit comments