Skip to content

Instantly share code, notes, and snippets.

@dsimmons
Created March 20, 2013 00:30
Show Gist options
  • Save dsimmons/5201397 to your computer and use it in GitHub Desktop.
Save dsimmons/5201397 to your computer and use it in GitHub Desktop.
parseRoute: (route) ->
next = do ->
regex = /([^/]*[^/])/g
return -> ((arg) -> arg).apply(this, regex.exec(route)?.slice(1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment