From 63412ddd4269dfac88b00eb727c0cff75e0fface Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 8 May 2025 20:37:04 +0800 Subject: [PATCH] fix bug --- app/utils/object.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/utils/object.py b/app/utils/object.py index 559e31ff..7030434f 100644 --- a/app/utils/object.py +++ b/app/utils/object.py @@ -53,7 +53,9 @@ class ObjectUtils: if not line: continue # 处理"""单行注释 - if line.startswith(('"""', "'''")) and line.endswith(('"""', "'''")): + if (line.startswith(('"""', "'''")) + and line.endswith(('"""', "'''")) + and len(line) > 3): continue # 处理"""多行注释 if line.startswith(('"""', "'''")):