feige
2024-03-29 0188d5c81ee28ab2f42edc5d1db67c9cdb0db42d
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)
}