Update (fix): missing fullstop

This commit is contained in:
2023-10-04 20:49:28 +08:00
parent f219d60ca8
commit 318367bd50

View File

@@ -17,7 +17,7 @@ function str_first_sentence($str)
// Return the first part of the array if available
if (isset($sentences[0])) {
return trim($sentences[0]);
return trim($sentences[0]) . ".";
}
// If no sentence ending found, return the whole string