Last active
March 25, 2019 01:59
-
-
Save JorgenVatle/071678966e73dc8eefa9a99dd1801419 to your computer and use it in GitHub Desktop.
Find & Replace magic
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
######################################################### | |
# JS kebab case to single word without apostrophes | |
## Find: | |
/'.+-(.+)'\s?:/g | |
## Replace with: | |
$1: | |
## Example use: | |
{ 'primary-dark': '#845CE6' } -> { dark: '#845CE6' } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment