Skip to content

Commit e6942d3

Browse files
authored
Update util.js
1 parent 8a33c65 commit e6942d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ui/src/utils/util.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ export function toCsv ({ keys = null, data = null, columnDelimiter = ',', lineDe
105105

106106
export function getSingularIfPluralWord(word) {
107107
if (word.endsWith('ies') && word.length > 3) {
108-
return word.slice(0, -3) + 'y';
108+
return word.slice(0, -3) + 'y'
109109
}
110110
if (word.endsWith('sses') || word.endsWith('shes') || word.endsWith('ches') || word.endsWith('xes') || word.endsWith('zes')) {
111-
return word.slice(0, -2);
111+
return word.slice(0, -2)
112112
}
113113
if (word.endsWith('s') && !word.endsWith('ss')) {
114-
return word.slice(0, -1);
114+
return word.slice(0, -1)
115115
}
116-
return word;
116+
return word
117117
}

0 commit comments

Comments
 (0)