From 993b9cc5b89146ca81cb5adc80c4ba017cb55fe0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 7 Dec 2021 22:09:46 +0000 Subject: [PATCH] chore(lint): Prettier fix --- scripts/notify/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/notify/index.js b/scripts/notify/index.js index 300aefd9fc..6427e91aaf 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() {