Skip to content

Commit

Permalink
Update StringService.php
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvenga authored Apr 18, 2023
1 parent cf97f0a commit 62b5c55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/StringService.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ public static function toArray(string $string)
{
$string = strip_tags($string);

return preg_split('/((^\p{P}+)|(\p{P}*\s+\p{P}*)|(\p{P}+$))/', $string);
return preg_split('/((^\p{P}+)|(\p{P}*\s+\p{P}*)|(\p{P}+$))|\-/', $string);
}
}

0 comments on commit 62b5c55

Please sign in to comment.