summaryrefslogtreecommitdiff
path: root/scripts/notify
diff options
context:
space:
mode:
authorGravatar github-actions[bot] <github-actions[bot]@users.noreply.github.com> 2021-12-07 22:09:46 +0000
committerGravatar github-actions[bot] <github-actions[bot]@users.noreply.github.com> 2021-12-07 22:09:46 +0000
commit993b9cc5b89146ca81cb5adc80c4ba017cb55fe0 (patch)
tree530edb8310d2a7921d4a2339db7206436b263843 /scripts/notify
parent0beb9183aefdc16fb735a3709bb3ef528156c6f8 (diff)
downloadastro-993b9cc5b89146ca81cb5adc80c4ba017cb55fe0.tar.gz
astro-993b9cc5b89146ca81cb5adc80c4ba017cb55fe0.tar.zst
astro-993b9cc5b89146ca81cb5adc80c4ba017cb55fe0.zip
chore(lint): Prettier fix
Diffstat (limited to 'scripts/notify')
-rwxr-xr-xscripts/notify/index.js8
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() {