mcavage/node-restify — pull request #598 by gwicke (2014-05-05 09:19:27+00:00)
Title: Updated: Simplify and correct path segment regexp #476

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.