diff options
author | Andrey Andreev <narf@devilix.net> | 2016-12-16 11:02:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-16 11:02:00 +0100 |
commit | facb347dcb5fe6f32d2c57fbe24db59d11a3ab6d (patch) | |
tree | 6bc3cba5bef66a092cef1737866b9664ec0da6d3 /system | |
parent | 9f20c8011a80d74edb740081cd96388bb6a967e6 (diff) | |
parent | 8d369209b9c1db8cf3fe06bba54441ca84a8d6e4 (diff) |
Merge pull request #4945 from vlakoff/text_helper
Small code simplification in character_limiter()
Diffstat (limited to 'system')
-rw-r--r-- | system/helpers/text_helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/text_helper.php b/system/helpers/text_helper.php index 4f9210f2d..e54ed04e1 100644 --- a/system/helpers/text_helper.php +++ b/system/helpers/text_helper.php @@ -102,7 +102,7 @@ if ( ! function_exists('character_limiter')) } // a bit complicated, but faster than preg_replace with \s+ - $str = preg_replace('/ {2,}/', ' ', str_replace(array("\r", "\n", "\t", "\x0B", "\x0C"), ' ', $str)); + $str = preg_replace('/ {2,}/', ' ', str_replace(array("\r", "\n", "\t", "\v", "\f"), ' ', $str)); if (mb_strlen($str) <= $n) { |