diff options
author | 2021-12-07 22:09:46 +0000 | |
---|---|---|
committer | 2021-12-07 22:09:46 +0000 | |
commit | 993b9cc5b89146ca81cb5adc80c4ba017cb55fe0 (patch) | |
tree | 530edb8310d2a7921d4a2339db7206436b263843 /scripts/notify | |
parent | 0beb9183aefdc16fb735a3709bb3ef528156c6f8 (diff) | |
download | astro-993b9cc5b89146ca81cb5adc80c4ba017cb55fe0.tar.gz astro-993b9cc5b89146ca81cb5adc80c4ba017cb55fe0.tar.zst astro-993b9cc5b89146ca81cb5adc80c4ba017cb55fe0.zip |
chore(lint): Prettier fix
Diffstat (limited to 'scripts/notify')
-rwxr-xr-x | scripts/notify/index.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/notify/index.js b/scripts/notify/index.js index 300aefd9f..6427e91aa 100755 --- a/scripts/notify/index.js +++ b/scripts/notify/index.js @@ -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() { |