From 3e82608d5f9f79a1731f5beac83ed5a38c637382 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Mon, 12 Aug 2024 20:13:57 +0530 Subject: [PATCH] chore: fixed linters --- frontend/src/utils/index.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/frontend/src/utils/index.js b/frontend/src/utils/index.js index d44e3974..94b04f85 100644 --- a/frontend/src/utils/index.js +++ b/frontend/src/utils/index.js @@ -485,17 +485,17 @@ export function getLineStartPosition(string, position) { } export function singularize(word) { - const endings = { - ves: 'fe', - ies: 'y', - i: 'us', - zes: 'ze', - ses: 's', - es: 'e', - s: '' - }; - return word.replace( - new RegExp(`(${Object.keys(endings).join('|')})$`), - r => endings[r] - ); -} \ No newline at end of file + const endings = { + ves: 'fe', + ies: 'y', + i: 'us', + zes: 'ze', + ses: 's', + es: 'e', + s: '', + } + return word.replace( + new RegExp(`(${Object.keys(endings).join('|')})$`), + (r) => endings[r] + ) +}