summaryrefslogtreecommitdiff
path: root/scripts/notify/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/notify/index.js')
-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() {