Tcsm
2023-04-10 3ca2523e54e60eb4bd20f525f91f264c2e8d45f2
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)
}