Skip to content

Commit c50766e

Browse files
committed
Explictly default to smart if option is undefined
(This maps to the previous behavior which only filtered globs when the mode === auto)
1 parent 76e1b50 commit c50766e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/path.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,14 @@ export function resolveGlobs(
195195
return false;
196196
} else if (options?.mode === "always") {
197197
return true;
198-
} else {
198+
} else if (options?.mode === "auto") {
199199
if (preferSmart) {
200200
return true;
201201
} else {
202202
return isGlob(glob);
203203
}
204+
} else {
205+
return true;
204206
}
205207
};
206208
const smartGlob = useSmartGlobs();

0 commit comments

Comments
 (0)