Skip to content

Instantly share code, notes, and snippets.

@piotros
Created January 18, 2017 10:21
Show Gist options
  • Save piotros/d75cb0d1f374809d7c2faafa9d8bdeef to your computer and use it in GitHub Desktop.
Save piotros/d75cb0d1f374809d7c2faafa9d8bdeef to your computer and use it in GitHub Desktop.
key.replace(new RegExp('^.+\.', ''), '.') // e.g. "ab.qwerty" => ".qwerty"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment