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:
parent
0beb9183ae
commit
993b9cc5b8
1 changed files with 4 additions and 4 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue