Skip to content

Instantly share code, notes, and snippets.

@chancancode
Created May 22, 2012 00:59
Show Gist options
  • Save chancancode/2765789 to your computer and use it in GitHub Desktop.
Save chancancode/2765789 to your computer and use it in GitHub Desktop.
key, type = key.split(/(?<!:):(?!:)/)
key.gsub('::',':')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment