MCPcopy
hub / github.com/webpack/webpack / isURL

Function isURL

lib/util/extractSourceMap.js:94–96  ·  view source on GitHub ↗

* Check if value is a URL * @param {string} value string to check * @returns {boolean} true if value is a URL

(value)

Source from the content-addressed store, hash-verified

92 * @returns {boolean} true if value is a URL
93 */
94function isURL(value) {
95 return validProtocolPattern.test(value) && !isAbsolute(value);
96}
97
98/**
99 * Fetch from multiple possible file paths

Callers 1

fetchFromURLFunction · 0.85

Calls 2

isAbsoluteFunction · 0.85
testMethod · 0.45

Tested by

no test coverage detected