client/file-dropper: fix URL validation

This commit is contained in:
rr- 2016-08-27 23:45:07 +02:00
parent 9dc438c391
commit 22342a29ad

View file

@ -65,7 +65,7 @@ class FileDropperControl extends events.EventTarget {
if (!url) {
return;
}
if (!url.match(/^https:?\/\/[^.]+\..+$/)) {
if (!url.match(/^https?:\/\/[^.]+\..+$/)) {
window.alert(`"${url}" does not look like a valid URL.`);
return;
}