Skip to content

Commit

Permalink
Fixed support for non roman alphabets #366
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jun 12, 2020
1 parent 601146b commit 646468c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ function clean(string $value, bool $allowHTML = false): ?string
{
$value = trim($value);

//Ignore empty texts or with no regular characters
if ($value === '' || !preg_match('/\w/', $value)) {
return null;
}

if (!$allowHTML) {
$value = html_entity_decode($value);
$value = strip_tags($value);
Expand Down

0 comments on commit 646468c

Please sign in to comment.