How to use the isHttpsUri function from valid-url
Find comprehensive JavaScript valid-url.isHttpsUri code examples handpicked from public code repositorys.
18 19 20 21 22 23 24 25 26 27
try { const URL = util.shortentURL(req.query.url); if ( validUrl.isUri(URL) && validUrl.isWebUri(URL) && validUrl.isHttpsUri(URL) ) { try { let domain = URL.replace(/.+\/\/|www.|\..+/g, ""); if (domain != null || domain != undefined || domain != "") {
0
0
0
+ 3 other calls in file
valid-url.isUri is the most popular function in valid-url (119 examples)