Skip to content

Commit

Permalink
Merge pull request #18 from unicef-polymer/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
acory authored Nov 7, 2018
2 parents 297c2c6 + e9b221b commit fb2fa20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions etools-upload.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit fb2fa20

Please sign in to comment.