Update snippet descriptions
This commit is contained in:
@ -9,7 +9,8 @@ Removes accents from strings.
|
||||
- Use `String.prototype.replace()` to replace diacritical marks in the given Unicode range by empty strings.
|
||||
|
||||
```js
|
||||
const removeAccents = str => str.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
|
||||
const removeAccents = str =>
|
||||
str.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
|
||||
```
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user