diff --git a/src/Services/StringService.php b/src/Services/StringService.php index 8473ea0..89835b0 100644 --- a/src/Services/StringService.php +++ b/src/Services/StringService.php @@ -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); } }