feige
2025-05-21 a58144a284aa8c199a7c6ba31b9aedbcf379e453
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)
}