Created
June 1, 2016 14:37
-
-
Save martinbean/0b351eb4c3267e46969b4218f39ec734 to your computer and use it in GitHub Desktop.
Converts dotted notation (`some.dotted.string`) to HTML format (i.e. `some[dotted][string]`).
This file contains 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
key.replace(/\.(\w+)/g, '[$1]'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment