We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e0502e commit ba710b9Copy full SHA for ba710b9
lib/search.js
@@ -197,9 +197,10 @@ exports.printResults = (results, config) => {
197
results.forEach((elem) => {
198
let cmdname = utils.parsePagename(elem.file);
199
let output = ' $ ' + cmdname;
200
- let array = shortIndex[cmdname]['platforms'];
201
- if (array.indexOf('common') === -1 && array.indexOf(preferredPlatform) === -1) {
202
- output += ' (Available on: ' + array.join(', ') + ')';
+ let targets = shortIndex[cmdname]['targets'];
+ let platforms = targets.map((t) => {return t.os;});
+ if (platforms.indexOf('common') === -1 && platforms.indexOf(preferredPlatform) === -1) {
203
+ output += ' (Available on: ' + platforms.join(', ') + ')';
204
}
205
outputs.add(output);
206
});
0 commit comments