mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-05 18:10:46 +08:00
fix: now urls with params are passing validation
example: https://www.granitecreek.com?asljhda=akjshd
This commit is contained in:
parent
a150aa820c
commit
cfd776a5de
@ -26,7 +26,7 @@ export const url = z.preprocess(
|
||||
.url()
|
||||
.regex(/^https?:\/\//, "URL uses unsupported protocol")
|
||||
.refine(
|
||||
(x) => /\.[a-z]{2,}(\/|$)/i.test(x),
|
||||
(x) => /\.[a-z]{2,}([\/?#]|$)/i.test(x),
|
||||
"URL must have a valid top-level domain or be a valid path"
|
||||
)
|
||||
.refine(
|
||||
|
Loading…
x
Reference in New Issue
Block a user