issues
search
ukayani
/
restify-router
A router interface for restify that lets you aggregate route definitions and apply to a restify server
MIT License
52
stars
15
forks
source link
Regex support for prefixes
#17
Closed
ukayani
closed
7 years ago
ukayani
commented
7 years ago
Added support for regular expressions for path prefixes and nested router prefixes
Fixed issue with prefix not being respected when path is regex
Added tests for various regex concatenation scenarios as well as router level prefixing with regex
Regex Concatenation Details
Addresses various string to regex concatenation issues such as regex literal escaping
Regex concatenation correctly preserves
^
if present at the start of either prefix or path
Regex concatenation correctly preserves
$
if present at the end of path
Regex concatenation preserves the
g
and
i
flags if present in either prefix or path
closes #16
Regex Concatenation Details
^
if present at the start of either prefix or path$
if present at the end of pathg
andi
flags if present in either prefix or pathcloses #16