module.exports.isWebsite = string => {
  return /[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/.test(string)
}

module.exports.isEmail = string => {
  return /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(string)
}

@@ -24,32 +24,204 @@
 e = string =%3E %7B%0A
+  try %7B%0A    new URL(string);%0A    return true;%0A  %7D catch (e) %7B%0A    // Keeping the regex validation as a fallback to avoid%0A    // a backwards-incompatible behavior change.%0A  
   return /%5B-a-zA
@@ -301,16 +301,20 @@
 string)%0A
+  %7D%0A
 %7D%0A%0Amodul

Update `isWebsite` validation to use a URL parser