mcavage/node-restify — pull request #476 by gwicke (2013-11-05 01:03:47+00:00)
Title: Simplify and correct path segment regexp

http://tools.ietf.org/html/rfc3986#section-3.3 explicitly includes sub-delims:

sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
/ "*" / "+" / "," / ";" / "="

It also includes the colon and the empty string.

Restify paths don't need to consider the query part of the URL as those are
already split by the node http server. This leaves us with basically zero or
more chars that are not a slash, which is what you'd expect when matching a
path component.