forked from ard/ruoyi-api

zhangjian
2023-08-09 b5cc4996ee502e9bf9db2d9f05c88d988e33e1ab
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)
}