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.
1 parent 25d0d12 commit fa69ce2Copy full SHA for fa69ce2
lib/commands/list.js
@@ -86,12 +86,12 @@ cmd.handler = function(argv) {
86
}
87
88
if (argv.tag) {
89
- var tag = argv.tag;
+ var tag = argv.tag.toLowerCase();
90
// TODO: fill company/tags in problems
91
problems = _.filter(problems, function(x) {
92
return x.category === tag ||
93
- x.company === tag ||
94
- (x.tags && x.tags.indexOf(tag) !== -1);
+ (_.isArray(x.companies) && x.companies.indexOf(tag) !== -1) ||
+ (_.isArray(x.tags) && x.tags.indexOf(tag) !== -1);
95
});
96
97
0 commit comments