Mercurial > hg > isophonics-drupal-site
comparison core/modules/text/text.module @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
89 return ''; | 89 return ''; |
90 } | 90 } |
91 } | 91 } |
92 | 92 |
93 // If we have a short body, the entire body is the summary. | 93 // If we have a short body, the entire body is the summary. |
94 if (Unicode::strlen($text) <= $size) { | 94 if (mb_strlen($text) <= $size) { |
95 return $text; | 95 return $text; |
96 } | 96 } |
97 | 97 |
98 // If the delimiter has not been specified, try to split at paragraph or | 98 // If the delimiter has not been specified, try to split at paragraph or |
99 // sentence boundaries. | 99 // sentence boundaries. |