DEPRECATED use https://github.com/pillarjs/path-to-regexp