MCPcopy
hub / github.com/webpack/webpack / isAbsolute

Function isAbsolute

lib/util/fs.js:739–739  ·  view source on GitHub ↗
(pathname)

Source from the content-addressed store, hash-verified

737 * @returns {boolean} is absolute
738 */
739const isAbsolute = (pathname) => ABSOLUTE_PATH_REGEXP.test(pathname);
740
741module.exports.dirname = dirname;
742module.exports.isAbsolute = isAbsolute;

Callers 5

getAbsolutePathFunction · 0.85
isURLFunction · 0.85
fetchFromURLFunction · 0.85
applyMethod · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected