|
|
@@ -1108,7 +1108,7 @@ class Text
|
|
|
|
|
|
$regex = '^\s\p{Ll}\p{Lm}\p{Lo}\p{Lt}\p{Lu}\p{Nd}';
|
|
|
if ($options['preserve']) {
|
|
|
- $regex .= '|' . preg_quote($options['preserve'], '/');
|
|
|
+ $regex .= preg_quote($options['preserve'], '/');
|
|
|
}
|
|
|
$quotedReplacement = preg_quote($options['replacement'], '/');
|
|
|
$map = [
|