Include punctuation in first-sentence lede

This commit is contained in:
Angelo Stavrow 2020-11-06 15:58:41 -05:00
parent 62e3c9aa0e
commit d989709319
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

@ -115,7 +115,7 @@ private extension PostListModel {
truncatedString[..<(endOfStringIndex ?? truncatedString.index(truncatedString.endIndex, offsetBy: -2))]
) + ""
} else {
lede = firstSentence
lede = String(truncatedString[...firstSentence.endIndex])
}
return lede