client/file-dropper: fix URL validation
This commit is contained in:
parent
9dc438c391
commit
22342a29ad
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class FileDropperControl extends events.EventTarget {
|
||||||
if (!url) {
|
if (!url) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!url.match(/^https:?\/\/[^.]+\..+$/)) {
|
if (!url.match(/^https?:\/\/[^.]+\..+$/)) {
|
||||||
window.alert(`"${url}" does not look like a valid URL.`);
|
window.alert(`"${url}" does not look like a valid URL.`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue