diff --git a/modules/web/src/components/ChapterContent.vue b/modules/web/src/components/ChapterContent.vue
index 05473dc6d..0cc720106 100644
--- a/modules/web/src/components/ChapterContent.vue
+++ b/modules/web/src/components/ChapterContent.vue
@@ -41,9 +41,8 @@ const calculateWordCount = (paragraph) => {
const imgPattern = /
]*src="[^"]*(?:"[^>]+\})?"[^>]*>/g;
//内嵌图片文字为1
const imagePlaceHolder = " ";
- return paragraph.trim().replaceAll(imgPattern, imagePlaceHolder).length;
+ return paragraph.replaceAll(imgPattern, imagePlaceHolder).length;
};
-