Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pattern support #249

Merged
merged 18 commits into from
Mar 2, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
resolve suggested changes
  • Loading branch information
garrett-wade committed Mar 1, 2022
commit 7a2f6030094529eb5add2a2f3d838ca2d8fc4755
2 changes: 0 additions & 2 deletions src/extractor.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
const extractComments = require('multilang-extract-comments');
const jsYaml = require('js-yaml');
const { option } = require('commander');

garrett-wade marked this conversation as resolved.
Show resolved Hide resolved
function pushLine(array, line) {
if (line.trim()) {
array.push(line);
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -4,7 +4,6 @@ const path = require('path');
const Loader = require('./loader');
const Extractor = require('./extractor');
const Options = require('./options');
const { option } = require('commander');

function outputResult(object, options) {
return new Promise(resolve => {
2 changes: 1 addition & 1 deletion src/loader.js
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ class Loader {
return Loader.loadFile(filepath).then(pattern => {
return JSON.parse(pattern);
}).catch((err) => {
// Return null if we have any problems, potetial for more rubust error handling.
// Return null if we have any problems, potential for more rubust error handling.
return null;
});
}