(source)
| 814 | const ABSOLUTE_SCHEME = /^[a-z0-9+\-.]+:/i; |
| 815 | |
| 816 | function 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 | |
| 832 | function normalizeSourceMap(map, resourcePath) { |
| 833 | let newMap = map; |
no outgoing calls
no test coverage detected