We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
negatedExtglob
1 parent 210454c commit 31b9bfaCopy full SHA for 31b9bfa
types/picomatch/picomatch-tests.ts
@@ -32,7 +32,10 @@ pm.isMatch("a.a", "b.*");
32
pm.parse("pattern");
33
pm.parse("pattern", {});
34
35
-pm.scan("!./foo/*.js");
+// $ExpectType State
36
+const scanState = pm.scan("!./foo/*.js");
37
+// $ExpectType boolean
38
+scanState.negatedExtglob;
39
40
const state = pm.parse("*.js");
41
pm.compileRe(state);
@@ -43,7 +46,10 @@ pm.toRegex(state.output, {
43
46
nocase: true,
44
47
});
45
48
-pm.scan("!./foo/*.js", { tokens: true });
49
50
+const scanStateWithTokens = pm.scan("!./foo/*.js", { tokens: true });
51
52
+scanStateWithTokens.negatedExtglob;
53
54
pm.makeRe("foo/*.js").test("foo/bar.js");
55
pm.makeRe("foo/{01..25}/bar", {
0 commit comments