Hello!
In v4.0.1, Blasp::check()->clean() appears to strip Unicode format characters (\p{Cf}), which breaks valid emoji ZWJ sequences.
For example, the emoji πββοΈ (woman getting massage) is rendered as two separate emojis after calling clean(), instead of a single combined glyph.
This behavior did not occur in previous versions (4.0.0).
Reproduction:
$text = "Test πββοΈ emoji";
$result = Blasp::check($text);
$output = $result->clean();
echo $output;
Expected Behavior
The emoji should remain intact:
Actual Behavior
The ZWJ sequence is broken, resulting in something like:
(or similar split rendering depending on platform)
Thank you for your package. This has been very helpful to me on my Laravel app.
Hello!
In v4.0.1, Blasp::check()->clean() appears to strip Unicode format characters (\p{Cf}), which breaks valid emoji ZWJ sequences.
For example, the emoji πββοΈ (woman getting massage) is rendered as two separate emojis after calling clean(), instead of a single combined glyph.
This behavior did not occur in previous versions (4.0.0).
Reproduction:
Expected Behavior
The emoji should remain intact:
Actual Behavior
The ZWJ sequence is broken, resulting in something like:
(or similar split rendering depending on platform)
Thank you for your package. This has been very helpful to me on my Laravel app.