We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69e489a commit da40bd0Copy full SHA for da40bd0
lib/helper/TextHelper.php
@@ -50,7 +50,7 @@ function truncate_text($text, $length = 30, $truncate_string = '...', $truncate_
50
51
if ($strlen($text) > $length) {
52
if ($truncate_pattern) {
53
- $length_min = null !== $length_max && (0 == $length_max || $length_max > $length) ? $length : null;
+ $length_min = null !== $length_max && (0 == $length_max || $length_max > $length) ? $length : 0;
54
55
preg_match($truncate_pattern, $text, $matches, PREG_OFFSET_CAPTURE, $length_min);
56
0 commit comments