fix: reduce estimated reading time for Chinese

This commit is contained in:
DIYgod 2023-10-12 20:48:24 +08:00
parent c5e9b8495e
commit 3f4ed416e9
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ export default function readingTime(text: string) {
.split(/\s+/)
.filter(Boolean)
const chineseReadingTime = chineseCharacters.length / 300
const chineseReadingTime = chineseCharacters.length / 600
const englishReadingTime = englishWords.length / 300
return chineseReadingTime + englishReadingTime