We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e9141b commit 1e06320Copy full SHA for 1e06320
lib/commands/list.js
@@ -86,8 +86,12 @@ cmd.handler = function(argv) {
86
}
87
88
if (argv.tag) {
89
+ var tag = argv.tag;
90
+ // TODO: fill company/tags in problems
91
problems = _.filter(problems, function(x) {
- return x.category === argv.tag;
92
+ return x.category === tag ||
93
+ x.company === tag ||
94
+ (x.tags && x.tags.indexOf(tag) !== -1);
95
});
96
97
test/test_plugin.js
@@ -1,4 +1,3 @@
1
-var _ = require('underscore');
2
var assert = require('chai').assert;
3
var rewire = require('rewire');
4
0 commit comments