MCPcopy Index your code
hub / github.com/webpack/css-loader / getURLType

Function getURLType

src/utils.js:816–830  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

814const ABSOLUTE_SCHEME = /^[a-z0-9+\-.]+:/i;
815
816function getURLType(source) {
817 if (source[0] === "/") {
818 if (source[1] === "/") {
819 return "scheme-relative";
820 }
821
822 return "path-absolute";
823 }
824
825 if (IS_NATIVE_WIN32_PATH.test(source)) {
826 return "path-absolute";
827 }
828
829 return ABSOLUTE_SCHEME.test(source) ? "absolute" : "path-relative";
830}
831
832function normalizeSourceMap(map, resourcePath) {
833 let newMap = map;

Callers 2

normalizeSourceMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected