* * @param {String} url * @returns {url} 判断URL是否为绝对路径 eg. isAbsoluteURL('/foo/bar') // false
(str)
| 310 | * @returns {url} 判断URL是否为绝对路径 eg. isAbsoluteURL('/foo/bar') // false |
| 311 | */ |
| 312 | isAbsoluteURL(str) { |
| 313 | return /^[a-z][a-z0-9+.-]*:/.test(str) |
| 314 | } |
| 315 | |
| 316 | /** |
| 317 | * |
nothing calls this directly
no outgoing calls
no test coverage detected