yz3456
2024-04-20 c0b7131a4213e7b1485c63fcad88d8d2d146c96c
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)
}