Skip to content

Commit 3a4e2e2

Browse files
fix: correct variable 'text' to 'inputs' in start_with_url function (#2233)
Co-authored-by: huanghuai <635771024@qq.com>
1 parent aa89c61 commit 3a4e2e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shared_utils/doc_loader_dynamic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def start_with_url(inputs:str):
99
if not ("http://" in inputs or "https://" in inputs):
1010
return False
1111
try:
12-
text = text.strip(',.!?,。!? \t\n\r')
12+
text = inputs.strip(',.!?,。!? \t\n\r')
1313
words = text.split()
1414
if len(words) != 1:
1515
return False

0 commit comments

Comments
 (0)