mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-14 09:37:37 +02:00
ESLintify Part 2 (#841)
* ESLintify Part 2 * Fix * Fix tests * Fix tests * Fix tests
This commit is contained in:
parent
4267337fb0
commit
5ac2cee658
42 changed files with 188 additions and 190 deletions
|
@ -42,9 +42,9 @@ module.exports = (string, context = {}) => {
|
|||
// Handle uppercase characters
|
||||
.toLowerCase()
|
||||
// Handle accentuated characters
|
||||
.replace(new RegExp('[' + accents + ']', 'g'), c => {
|
||||
return without.charAt(accents.indexOf(c));
|
||||
})
|
||||
.replace(new RegExp('[' + accents + ']', 'g'), c =>
|
||||
without.charAt(accents.indexOf(c))
|
||||
)
|
||||
// Replace `.`, `(` and `?` with blank string like Github does
|
||||
.replace(/\.|\(|\?/g, '')
|
||||
// Dash special characters
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue