Kevin Hu commited on
Commit
76ea913
·
1 Parent(s): 1f1194f

trival (#3325)

Browse files

### What problem does this PR solve?



### Type of change


- [x] Performance Improvement

Files changed (1) hide show
  1. api/utils/web_utils.py +1 -1
api/utils/web_utils.py CHANGED
@@ -77,4 +77,4 @@ def __get_pdf_from_html(
77
 
78
 
79
  def is_valid_url(url: str) -> bool:
80
- return bool(re.match(r"(https?|ftp|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]", url))
 
77
 
78
 
79
  def is_valid_url(url: str) -> bool:
80
+ return bool(re.match(r"(https?)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]", url))