MCPcopy
hub / github.com/less/less.js / isPathRelative

Function isPathRelative

packages/less/lib/less/contexts.js:157–159  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

155};
156
157function isPathRelative(path) {
158 return !/^(?:[a-z-]+:|\/|#)/i.test(path);
159}
160
161function isPathLocalRelative(path) {
162 return path.charAt(0) === '.';

Callers 1

contexts.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected