Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-10-16 20:08:43 +0300
committerMike Greiling <mike@pixelcog.com>2018-10-16 20:08:43 +0300
commit1dae485c7b68c3797b2acaec2c5a68af888cd0c0 (patch)
tree9e514256665139effd76c64ff963de4563c66e6d /app
parent65f2e955234de1f7ba54e0350eafcf3687cd13b1 (diff)
parentd0191e294fd7ac8cafe5b59977de3d03cca5f056 (diff)
Merge branch '52686-project-slug-does-not-auto-populate-in-ie11' into 'master'
Resolve "Project slug does not auto populate in IE11" Closes #52686 See merge request gitlab-org/gitlab-ce!22367
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/lib/utils/text_utility.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/assets/javascripts/lib/utils/text_utility.js b/app/assets/javascripts/lib/utils/text_utility.js
index 250980919dd..7cc7cd6d20e 100644
--- a/app/assets/javascripts/lib/utils/text_utility.js
+++ b/app/assets/javascripts/lib/utils/text_utility.js
@@ -53,10 +53,7 @@ export const slugify = str => str.trim().toLowerCase();
* @param {String} str
* @returns {String}
*/
-export const slugifyWithHyphens = str => {
- const regex = new RegExp(/\s+/, 'g');
- return str.toLowerCase().replace(regex, '-');
-};
+export const slugifyWithHyphens = str => str.toLowerCase().replace(/\s+/g, '-');
/**
* Truncates given text