mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-02-03 09:05:07 +08:00
Fix check_comment_ascii.py
This commit is contained in:
@ -5,12 +5,13 @@ import ast
|
|||||||
import pathlib
|
import pathlib
|
||||||
import re
|
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:
|
def check(src: str, name: str) -> int:
|
||||||
"""
|
"""
|
||||||
I'm a docstring
|
docstring line 1
|
||||||
|
docstring line 2
|
||||||
"""
|
"""
|
||||||
ok = 1
|
ok = 1
|
||||||
# A common comment begins with `#`
|
# A common comment begins with `#`
|
||||||
|
|||||||
Reference in New Issue
Block a user