Snippet format update
To match the starter (for the migration)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
### removeNonASCII
|
||||
---
|
||||
title: removeNonASCII
|
||||
tags: string,regexp,intermediate
|
||||
---
|
||||
|
||||
Removes non-printable ASCII characters.
|
||||
|
||||
@ -10,4 +13,4 @@ const removeNonASCII = str => str.replace(/[^\x20-\x7E]/g, '');
|
||||
|
||||
```js
|
||||
removeNonASCII('äÄçÇéÉêlorem-ipsumöÖÐþúÚ'); // 'lorem-ipsum'
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user