Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
94176d60
Commit
94176d60
authored
Apr 12, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
0fb58f87
7728212b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
13 deletions
+0
-13
app/assets/javascripts/lib/utils/text_utility.js
app/assets/javascripts/lib/utils/text_utility.js
+0
-7
spec/frontend/lib/utils/text_utility_spec.js
spec/frontend/lib/utils/text_utility_spec.js
+0
-6
No files found.
app/assets/javascripts/lib/utils/text_utility.js
View file @
94176d60
...
...
@@ -43,13 +43,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
...
...
spec/frontend/lib/utils/text_utility_spec.js
View file @
94176d60
...
...
@@ -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
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment