### What problem does this PR solve?



### Type of change


- [x] Performance Improvement
This commit is contained in:
Kevin Hu 2024-11-11 10:39:49 +08:00 committed by GitHub
parent 5e5a35191e
commit 3faae0b2c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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))