0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

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([
['is', 'are'],
['has', 'have']
])
['has', 'have'],
]);
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) {
return text.replace(/(\[([^\]]+)\])/gm, (_, _full, match) => `${match}`)
return text.replace(/(\[([^\]]+)\])/gm, (_, _full, match) => `${match}`);
}
async function run() {