diff --git a/src/Fenom/Modifier.php b/src/Fenom/Modifier.php index 8d9439b..5fd13ca 100644 --- a/src/Fenom/Modifier.php +++ b/src/Fenom/Modifier.php @@ -109,7 +109,7 @@ class Modifier if ($by_words) { return preg_replace('#\s\S*$#usS', "", $match[1]) . $etc . - preg_replace('#\s\S*$#usS', "", $match[2]); + preg_replace('#\S*\s#usS', "", $match[2]); } else { return $match[1] . $etc . $match[2]; }