ilhamdev commited on
Commit
3622ac0
·
verified ·
1 Parent(s): cfb12fe

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -36,7 +36,7 @@ return response;
36
 
37
  // isURL
38
  function isUrl(url) {
39
- let regex = new RegExp(/(https?://)?(www.)?[-a-zA-Z0-9@:%.+~#=]{1,256}.[a-zA-Z0-9()]{1,9}\b([-a-zA-Z0-9()@:%+.~#?&//=]*)/, 'gi');
40
  if (!regex.test(url)) return false;
41
  return url?.match(regex);
42
  }
 
36
 
37
  // isURL
38
  function isUrl(url) {
39
+ let regex = new RegExp(/(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%.+~#=]{1,256}\.[a-zA-Z0-9()]{1,9}\b([-a-zA-Z0-9()@:%+.~#?&//=]*)/, 'gi');
40
  if (!regex.test(url)) return false;
41
  return url?.match(regex);
42
  }