Skip to content

Instantly share code, notes, and snippets.

@Shaglock
Created September 4, 2018 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shaglock/bb166a220e61d8d95b5a4ef753ac931d to your computer and use it in GitHub Desktop.
Save Shaglock/bb166a220e61d8d95b5a4ef753ac931d to your computer and use it in GitHub Desktop.
Regexp for replacing hash rocket syntax
/([^:]|^):(\w+)\s?(\s*)=>\s?(\s*)/g,
"$1$2: $3$4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment