linwenling
2023-08-15 f43554d828bc2212c5d7118d7de5ebcc57d1c6f3
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)
}