Debian Codegraph @

ncjsm/test/utils/is-path-external.js

raw
1 "use strict";
2
3 module.exports = function (t, a) {
4 a(t("foo"), true);
5 a(t("foo/bar.js"), true);
6 a(t("/foo/bar.js"), false);
7 a(t("./foo/bar.js"), false);
8 a(t("../foo/bar.js"), false);
9 a(t(".."), false);
10 a(t("."), false);
11 a(t("../../"), false);
12 a(t(".../sdfsdf/"), true);
13 };