chore(lint): Prettier fix

This commit is contained in:
github-actions[bot] 2021-12-07 22:09:46 +00:00
parent 0beb9183ae
commit 993b9cc5b8

View file

@ -42,15 +42,15 @@ function item(items) {
const plurals = new Map([ const plurals = new Map([
['is', 'are'], ['is', 'are'],
['has', 'have'] ['has', 'have'],
]) ]);
function pluralize(text) { function pluralize(text) {
return text.replace(/(\[([^\]]+)\])/gm, (_, _full, match) => plurals.has(match) ? plurals.get(match) : `${match}s`) return text.replace(/(\[([^\]]+)\])/gm, (_, _full, match) => (plurals.has(match) ? plurals.get(match) : `${match}s`));
} }
function singularlize(text) { function singularlize(text) {
return text.replace(/(\[([^\]]+)\])/gm, (_, _full, match) => `${match}`) return text.replace(/(\[([^\]]+)\])/gm, (_, _full, match) => `${match}`);
} }
async function run() { async function run() {