Created
July 11, 2024 00:06
-
-
Save phoozle/bcee98c7ec0e8a68db056f859aec7900 to your computer and use it in GitHub Desktop.
Rails 7 enum syntax upgrade regexp
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
Find: enum (\w+): ({[^\}]*}) | |
Replace: enum :$1, $2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment