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([
|
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() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue