Skip to content

Commit

Permalink
Resolved #4300 where url title validation failed with some emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
bryannielsen committed May 8, 2024
1 parent 215d671 commit 23379bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function validate($key, $value)

protected function stripEmojis($value)
{
$regex = '/(?:' . ee('Emoji')->emojiRegex . ')/u';
$regex = '/(?:[' . ee('Emoji')->emojiRegex . '])/iu';
$value = preg_replace($regex, '', $value);

return $value;
Expand Down

0 comments on commit 23379bb

Please sign in to comment.