mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 20:59:00 +08:00
trival (#3325)
### What problem does this PR solve? ### Type of change - [x] Performance Improvement
This commit is contained in:
parent
5e5a35191e
commit
3faae0b2c2
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user