Skip to content

Instantly share code, notes, and snippets.

@jhoguet
Created August 14, 2015 04:50
Show Gist options
  • Save jhoguet/cce908948871e4c187df to your computer and use it in GitHub Desktop.
Save jhoguet/cce908948871e4c187df to your computer and use it in GitHub Desktop.
'a-big-bad-directive'.replace(/-(.)/g, function(a, b){
    return b.toUpperCase();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment