Skip to content

Commit b38e47c

Browse files
committed
fix(path): check dot input to expose hidden
1 parent c991da5 commit b38e47c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/target/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ let __pathSelector = async (
11321132
}
11331133
let dirFilter = dirent => {
11341134
if (dirent.name.startsWith(".")) {
1135-
return input.startsWith(".") || showHidden
1135+
return input.includes(path.sep + ".") || showHidden
11361136
}
11371137

11381138
return true
@@ -1181,7 +1181,7 @@ let __pathSelector = async (
11811181
return
11821182
}
11831183

1184-
if (input.includes(path.sep + ".")) {
1184+
if (input.endsWith(path.sep + ".")) {
11851185
let choices = await createPathChoices(
11861186
startPath,
11871187
() => true

0 commit comments

Comments
 (0)