diff options
-rw-r--r-- | app/assets/javascripts/lib/utils/text_utility.js | 7 | ||||
-rw-r--r-- | spec/frontend/lib/utils/text_utility_spec.js | 6 |
2 files changed, 0 insertions, 13 deletions
diff --git a/app/assets/javascripts/lib/utils/text_utility.js b/app/assets/javascripts/lib/utils/text_utility.js index 1b7f8732c65..3f5fc5dd306 100644 --- a/app/assets/javascripts/lib/utils/text_utility.js +++ b/app/assets/javascripts/lib/utils/text_utility.js @@ -44,13 +44,6 @@ export const pluralize = (str, count) => str + (count > 1 || count === 0 ? 's' : export const dasherize = str => str.replace(/[_\s]+/g, '-'); /** - * Removes accents and converts to lower case - * @param {String} str - * @returns {String} - */ -export const slugify = str => str.trim().toLowerCase(); - -/** * Replaces whitespaces with hyphens and converts to lower case * @param {String} str * @returns {String} diff --git a/spec/frontend/lib/utils/text_utility_spec.js b/spec/frontend/lib/utils/text_utility_spec.js index 17fdbf606b2..a63631e09d2 100644 --- a/spec/frontend/lib/utils/text_utility_spec.js +++ b/spec/frontend/lib/utils/text_utility_spec.js @@ -49,12 +49,6 @@ describe('text_utility', () => { }); }); - describe('slugify', () => { - it('should remove accents and convert to lower case', () => { - expect(textUtils.slugify('João')).toEqual('joão'); - }); - }); - describe('capitalizeFirstCharacter', () => { it('returns string with first letter capitalized', () => { expect(textUtils.capitalizeFirstCharacter('gitlab')).toEqual('Gitlab'); |