Last active
August 29, 2015 13:55
-
-
Save cblunt/8729079 to your computer and use it in GitHub Desktop.
Replace ruby rocket-syntax hash keys with JSON style
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
# Simple regex to replace ruby rocket-syntax hash keys with JSON style. | |
# e.g. Replace :some_key => "value" with some_key: "value" | |
# | |
# (Tested in sublime) | |
/:([a-zA-Z0-9_-]*)(( *)=>\ *)/$1: / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment