Fix #116 (broken regexp)

This commit is contained in:
bzick 2015-02-01 00:49:59 +03:00
parent 0592e248e2
commit 4beacd57b9

View File

@ -109,7 +109,7 @@ class Modifier
if ($by_words) { if ($by_words) {
return preg_replace('#\s\S*$#usS', "", $match[1]) . return preg_replace('#\s\S*$#usS', "", $match[1]) .
$etc . $etc .
preg_replace('#\s\S*$#usS', "", $match[2]); preg_replace('#\S*\s#usS', "", $match[2]);
} else { } else {
return $match[1] . $etc . $match[2]; return $match[1] . $etc . $match[2];
} }