mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Include punctuation in first-sentence lede
This commit is contained in:
parent
62e3c9aa0e
commit
d989709319
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user