Found division operators explicitly at the beginning of regular expressions JS-0055
Anti-pattern
Minor
5 months ago10 months old
A regular expression literal can be confused with '/='
 50  document.cookie.split(";").forEach(function (c) {
 51    document.cookie = c
 52      .replace(/^ +/, "")
 53      .replace(/=.*/, "=;expires=" + new Date().toUTCString() + ";path=/"); // Sets every cookie as expired to delete them 54  });
 55  await goto("/");
 56  location.reload();