mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 03:32:22 +08:00
Merge pull request #732 from mendableai/fix/url-validation-params
[BUG] Fixed URLs with params
This commit is contained in:
commit
497ac3328b
|
@ -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…
Reference in New Issue
Block a user