diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2017-02-10 23:21:45 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-02-10 23:21:45 +0300 |
commit | 7b20784715ea4f32fd8d83d1ab9403056069e9f7 (patch) | |
tree | f9265719528d78ddec793f79faef5c30cb10ae58 /app/assets/javascripts/lib/utils/text_utility.js | |
parent | 63caff8fcd9382ad1db896336017241e25e2b5c1 (diff) |
Revert "Merge branch 'add-additional-checks-to-ca-data' into 'master'
"
This reverts commit b7c5ca499d9c26494736d92505116bbb294c63d6, reversing
changes made to 9745c98bb77a1a1ddd964f58cc4d058a665eb9ee.
Diffstat (limited to 'app/assets/javascripts/lib/utils/text_utility.js')
-rw-r--r-- | app/assets/javascripts/lib/utils/text_utility.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/app/assets/javascripts/lib/utils/text_utility.js b/app/assets/javascripts/lib/utils/text_utility.js index 326b7cb7f57..d9370db0cf2 100644 --- a/app/assets/javascripts/lib/utils/text_utility.js +++ b/app/assets/javascripts/lib/utils/text_utility.js @@ -1,7 +1,5 @@ /* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, no-param-reassign, no-cond-assign, quotes, one-var, one-var-declaration-per-line, operator-assignment, no-else-return, prefer-template, prefer-arrow-callback, no-empty, max-len, consistent-return, no-unused-vars, no-return-assign, max-len */ -require('vendor/latinise'); - (function() { (function(w) { var base; @@ -166,14 +164,8 @@ require('vendor/latinise'); gl.text.pluralize = function(str, count) { return str + (count > 1 || count === 0 ? 's' : ''); }; - gl.text.truncate = function(string, maxLength) { + return gl.text.truncate = function(string, maxLength) { return string.substr(0, (maxLength - 3)) + '...'; }; - gl.text.dasherize = function(str) { - return str.replace(/[_\s]+/g, '-'); - }; - gl.text.slugify = function(str) { - return str.trim().toLowerCase().latinise(); - }; })(window); }).call(this); |