Commit 1c5bce3d authored by PidgeyL's avatar PidgeyL
Browse files

Update search to new cve format

parent 3452d7f8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
//Search function
function redirect() {
  var search = document.getElementById("search").value
  if(/^CVE-[0-9]{4}-[0-9]{4,6}$/.test(search.toUpperCase())){
  if(/^CVE-[0-9]{4}-[0-9]{4,7}$/.test(search.toUpperCase())){
    var url = "/cve/" + search; window.location = url;
  }else{
    var form = document.createElement("form");