Fix #116 (broken regexp)

This commit is contained in:
bzick 2015-02-01 00:49:59 +03:00
parent 0592e248e2
commit 4beacd57b9
1 changed files with 1 additions and 1 deletions

View File

@ -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];
}