Skip to content

Commit

Permalink
chore: run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Apr 10, 2024
1 parent 9fc0dad commit 6f0751d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/citation-js-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ export function firstNonDoiUrl(str?: string, doi?: string) {
return matches.map((match) => match[0]).find((match) => !doi || !match.includes(doi));
}


/**
* Parse a citation style of the form `citation-<style>` into its `<style>`
*
Expand All @@ -178,7 +177,6 @@ function parseCitationStyle(style: string): string {
return styleFormat;
}


/**
* Parse a BibTeX string into an array of CSL items
*
Expand All @@ -197,7 +195,6 @@ export async function parseCSLJSON(source: object[]): Promise<CSL[]> {
return Promise.resolve(cleanCSL(source));
}


/**
* Build renderers for the given array of CSL items
*
Expand Down Expand Up @@ -247,9 +244,9 @@ export async function getCitationRenderers(data: CSL[]): Promise<CitationRendere
);
},
cite: c,
exportBibTeX(): string {
return cite.set(c).format('bibtex', {format: 'text'}) as string;
}
exportBibTeX(): string {
return cite.set(c).format('bibtex', { format: 'text' }) as string;
},
},
];
}),
Expand Down

0 comments on commit 6f0751d

Please sign in to comment.