Skip to content

Commit

Permalink
Fix autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Jul 25, 2024
1 parent 336e710 commit 728be8a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
8 changes: 2 additions & 6 deletions distribution/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion distribution/index.js.map

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions parse-title.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function titleCase(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}

function parseTitle(title, {keywords, labels}) {
export function parseTitle(title, {keywords, labels}) {
const separator = /[)\-:\]]+/.exec(title);
if (!separator) {
return {title, labels: []};
Expand All @@ -26,7 +26,7 @@ function parseTitle(title, {keywords, labels}) {
return {title, labels: []};
}

function parseTitleWithDefaults(title) {
export function parseTitleWithDefaults(title) {
for (const {keywords, labels} of defaults) {
console.log(keywords, labels);
const updates = parseTitle(title, {keywords, labels});
Expand All @@ -38,7 +38,3 @@ function parseTitleWithDefaults(title) {
return {title, labels: []};
}

const _parseTitle = parseTitle;
export {_parseTitle as parseTitle};
const _parseTitleWithDefaults = parseTitleWithDefaults;
export {_parseTitleWithDefaults as parseTitleWithDefaults};

0 comments on commit 728be8a

Please sign in to comment.