Last active
August 29, 2023 05:15
-
-
Save bsnape/edff869d5b7dc0b0d7c2 to your computer and use it in GitHub Desktop.
Rubymine find & replace string hash rockets with new syntax
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
find: | |
\'(\w+)\'\s*=> | |
replace: | |
$1: | |
replace symbol hash rockets with new syntax | |
find: | |
:(\w+)\s*=> | |
replace: | |
$1: |
From symbol keys to double quote rocket keys
find:
(\w+):
replace:
"$1" =>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For double-quote users, use this for the find of string hash keys: