Skip to content

Commit

Permalink
fix: autocomplete broken since 1.1.37
Browse files Browse the repository at this point in the history
  • Loading branch information
ljacobsson committed Aug 2, 2021
1 parent a722143 commit fa55ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/shared/input-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function sourceAutocomplete(sources) {
split.filter(
(f) =>
typeof p === "string" && p.toLowerCase().includes(f.toLowerCase())
|| p.name.toLowerCase().includes(f.toLowerCase())
|| (p.name && p.name.toLowerCase().includes(f.toLowerCase()))
).length === split.length
);
};
Expand Down

0 comments on commit fa55ae1

Please sign in to comment.