diff options
| author | rr- | 2016-08-27 23:45:07 +0200 |
|---|---|---|
| committer | rr- | 2016-08-27 23:45:07 +0200 |
| commit | 22342a29ad9368e5477c2dfc3ad1cacf3e9fa8da (patch) | |
| tree | f798a033b0c511fb2493015f8f47c46bc9f158a6 | |
| parent | 9dc438c391d17d4db66737e60f2d0ba6a2a2aac6 (diff) | |
client/file-dropper: fix URL validation
| -rw-r--r-- | client/js/controls/file_dropper_control.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/js/controls/file_dropper_control.js b/client/js/controls/file_dropper_control.js index 300b283..113e7ac 100644 --- a/client/js/controls/file_dropper_control.js +++ b/client/js/controls/file_dropper_control.js @@ -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; } |