From 4beacd57b98557b5e013d76bcbbc834e5a227125 Mon Sep 17 00:00:00 2001 From: bzick Date: Sun, 1 Feb 2015 00:49:59 +0300 Subject: [PATCH] Fix #116 (broken regexp) --- src/Fenom/Modifier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; }