Update (fix): missing fullstop
This commit is contained in:
@@ -17,7 +17,7 @@ function str_first_sentence($str)
|
|||||||
|
|
||||||
// Return the first part of the array if available
|
// Return the first part of the array if available
|
||||||
if (isset($sentences[0])) {
|
if (isset($sentences[0])) {
|
||||||
return trim($sentences[0]);
|
return trim($sentences[0]) . ".";
|
||||||
}
|
}
|
||||||
|
|
||||||
// If no sentence ending found, return the whole string
|
// If no sentence ending found, return the whole string
|
||||||
|
|||||||
Reference in New Issue
Block a user