function extractCookie(cookies){
  cookieArr = cookies.split(";")
  let url = ""

  for(ele of cookieArr){
    let key = ele.split("=")[0].trim()
    if(key.localeCompare("url")==0){
      url = ele.split("=")[1]
      break
    }
  }

  return url
}
/**
 * extracts the url from the cookies
 * @param {*} cookies Cookies received from the request
 */
extracts the url from the cookies
@param {*} cookies Cookies received from the request
extracts the url from the cookies @param { * } cookies Cookies received from the request
function extractCookie(cookies){
  cookieArr = cookies.split(";")
  let url = ""
  for(ele of cookieArr){
    let key = ele.split("=")[0].trim()
    if(key.localeCompare("url")==0){
      url = ele.split("=")[1]
      break
    }
  }
  return url
}
function extractCookie ( cookies ) { cookieArr = cookies . split ( ";" ) let url = "" for ( ele of cookieArr ) { let key = ele . split ( "=" ) [ 0 ] . trim ( ) if ( key . localeCompare ( "url" ) == 0 ) { url = ele . split ( "=" ) [ 1 ] break } } return url }
extracts the url from the cookies
 @param {*} cookies Cookies received from the request
extracts the url from the cookies @param { * } cookies Cookies received from the request