diff --git a/etools-upload.html b/etools-upload.html index 16824be..82abca6 100644 --- a/etools-upload.html +++ b/etools-upload.html @@ -313,10 +313,10 @@ isValidURL(str) { const pattern = new RegExp('^(https?:\\/\\/)?'+ // protocol '((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|'+ // domain name - '((\\d{1,3}\\.){3}\\d{1,3}))'+ // ip (v4) address - '(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*'+ //port + '((\\d{1,3}\\.){3}\\d{1,3}))?'+ // ip (v4) address + '(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*'+ //port + path '(\\?[;&a-z\\d%_.~+=-]*)?'+ // query string - '(\\#[-a-z\\d_]*)?$','i'); + '(\\#[-a-z\\d_]*)?$','i');// hash return pattern.test(str); }