hyper-express
hyper-express copied to clipboard
Path parameter regexp
hi @kartikk221, how about adding regexp in path (just path parameters or whole path) ? path parameter:
/users/:id(\\d+)/:tab(home|photos|bio)
whole path example:
/(user|u)/:id(\\d+)
we can use https://github.com/pillarjs/path-to-regexp to convert path to regexp or checking for ( ) in parse_path_parameters
after each recognized path parameter