Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
depperm committed Apr 20, 2023
1 parent a6eb62d commit e7df21f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/operations/WhatIsIt.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import Operation from "../Operation.mjs";
import what from 'jswhat';
import what from "jswhat";

/**
* WhatIsIt operation
Expand Down Expand Up @@ -51,14 +51,14 @@ class WhatIsIt extends Operation {
*/
run(input, args) {
const [search, filter, exclude] = args;
let fOptions = { search };
const fOptions = { search };
if (filter.length) {
fOptions.filter = filter.split(/,\s?/);
}
if (exclude.length) {
fOptions.exclude = exclude.split(/,\s?/);
}
console.log(fOptions)

return what.is(input, fOptions);
}
/**
Expand All @@ -81,7 +81,7 @@ class WhatIsIt extends Operation {
output += `<tr>
<td>${option.name}</td>
<td>${option.matched}</td>
<td>${option.description}(${option.tags.join(', ')})</td>
<td>${option.description}(${option.tags.join(", ")})</td>
</tr>`;
});

Expand Down

0 comments on commit e7df21f

Please sign in to comment.