Created
October 17, 2017 23:14
-
-
Save aradnom/0130934ed57ee7efb458ae3d8af059d2 to your computer and use it in GitHub Desktop.
Simple regex for replacing pre-ES6-style functions with ES6-style functions
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: function \((\s)?(.*)(\s)?\) { | |
Replace: ($1$2$3) => { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment