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
bb31fb9e
Commit
bb31fb9e
authored
Aug 20, 2020
by
Kev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix eslint errors (even tho I prefer for..of)
parent
2607a42d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
app/assets/javascripts/lib/utils/text_utility.js
app/assets/javascripts/lib/utils/text_utility.js
+9
-4
No files found.
app/assets/javascripts/lib/utils/text_utility.js
View file @
bb31fb9e
...
...
@@ -323,8 +323,11 @@ const unicodeConversion = [
[
/ö/g
,
'
oe
'
],
[
/ü/g
,
'
ue
'
],
[
/ä/g
,
'
ae
'
],
// eslint-disable-next-line @gitlab/require-i18n-strings
[
/Ö/g
,
'
Oe
'
],
// eslint-disable-next-line @gitlab/require-i18n-strings
[
/Ü/g
,
'
Ue
'
],
// eslint-disable-next-line @gitlab/require-i18n-strings
[
/Ä/g
,
'
Ae
'
],
];
...
...
@@ -338,11 +341,13 @@ const unicodeConversion = [
* @returns {String}
*/
export
const
convertUnicodeToAscii
=
string
=>
{
for
(
let
[
regex
,
replacer
]
of
unicodeConversion
)
{
string
=
string
.
replace
(
regex
,
replacer
);
}
let
convertedString
=
string
;
return
string
;
unicodeConversion
.
forEach
(([
regex
,
replacer
])
=>
{
convertedString
=
convertedString
.
replace
(
regex
,
replacer
);
});
return
convertedString
;
};
/**
...
...
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