mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 19:46:23 +00:00
fix(description): first sentence no longer repeats until max length (#981)
This commit is contained in:
parent
b30a200bd4
commit
2e9a0c21db
1 changed files with 1 additions and 0 deletions
|
@ -61,6 +61,7 @@ export const Description: QuartzTransformerPlugin<Partial<Options> | undefined>
|
||||||
const currentSentence = sentence.endsWith(".") ? sentence : sentence + "."
|
const currentSentence = sentence.endsWith(".") ? sentence : sentence + "."
|
||||||
finalDesc.push(currentSentence)
|
finalDesc.push(currentSentence)
|
||||||
currentDescriptionLength += currentSentence.length
|
currentDescriptionLength += currentSentence.length
|
||||||
|
sentenceIdx++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue