Tcsm
2023-07-26 c003a5fb28554e2f37c431214dabf6f75f27cc29
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)
}