Last active
September 6, 2020 10:12
-
-
Save ozantunca/9c041921ac2e2eac8e3865348efbbe5a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
removeFromText('lorem ipsum dolor sit amet', ' '); | |
// -> 'loremipsumdolorsitamet' ✅ works | |
removeFromText('lorem+ipsum+dolor+sit+amet', '+'); | |
// -> throws error ❌ | |
removeFromText('lorem+ipsum+dolor+sit+amet', '+'); | |
// -> still throws error ❌ | |
removeFromText('lorem+ipsum+dolor+sit+amet', '\\+'); | |
// -> 'loremipsumdolorsitamet' ✅ works |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment