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.
.includes
.indexOf
1 parent 5c84c65 commit d202c73Copy full SHA for d202c73
src/cli/commands/ls.js
@@ -161,7 +161,7 @@ export function filterTree(tree: Tree, filters: Array<string>): boolean {
161
}
162
163
const notDim = tree.color !== 'dim';
164
- const found = (filters.includes(tree.name.slice(0, tree.name.lastIndexOf('@'))) : boolean);
+ const found = filters.indexOf(tree.name.slice(0, tree.name.lastIndexOf('@'))) > -1;
165
const hasChildren = tree.children == null ? false : tree.children.length > 0;
166
167
return notDim && (found || hasChildren);
0 commit comments