Skip to content

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

trival (#3325)

Kevin Hu3faae0b2c2f8
diff --git a/api/utils/web_utils.py b/api/utils/web_utils.py
index ce05db5148..29c39601b4 100644
--- a/api/utils/web_utils.py
+++ b/api/utils/web_utils.py
@@ -77,4 +77,4 @@ def __get_pdf_from_html(
def is_valid_url(url: str) -> bool:
- return bool(re.match(r"(https?|ftp|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]", url))
+ return bool(re.match(r"(https?)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]", url))