yz3456
2024-03-20 4ec4b1c59efe9ffbd4812d1ba48378862f82d48c
1
2
3
4
module.exports = function isAbsoluteUrl (url) {
  // A URL is considered absolute if it begins with "<scheme>://" or "//"
  return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url)
}