mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-30 13:30:31 +00:00
companion: only validate URL for FQDN when debug is off
This commit is contained in:
parent
35d51b5d12
commit
924482a7ae
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ const validateURL = (url, debug) => {
|
|||
}
|
||||
|
||||
const parsed = utils.parseURL(url)
|
||||
if (!validator.isFQDN(parsed.hostname, { require_tld: !debug })) {
|
||||
if (!debug && !validator.isFQDN(parsed.hostname, { require_tld: !debug })) {
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue