Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix check_comment_ascii.py

Zhichang Yu7538e218a531
diff --git a/check_comment_ascii.py b/check_comment_ascii.py
index 49cac90d79..98bc9c2e38 100644
--- a/check_comment_ascii.py
+++ b/check_comment_ascii.py
@@ -5,12 +5,13 @@ import ast
import pathlib
import re
-ASCII = re.compile(r"^[ -~]*\Z") # Only printable ASCII
+ASCII = re.compile(r"^[\n -~]*\Z") # Printable ASCII + newline
def check(src: str, name: str) -> int:
"""
- I'm a docstring
+ docstring line 1
+ docstring line 2
"""
ok = 1
# A common comment begins with `#`