Last active
September 26, 2017 18:00
-
-
Save Husamui/c048b22c1db8fe7f81ba56e4f195871f to your computer and use it in GitHub Desktop.
Replace invalid characters with underscore
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
| string.replace(/[^a-zA-Z0-9.-]/g, "_"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment