You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
a317aa86a8
Router • add can take either a string or array • An array will check each item, for a string will be converted to an array RouteNode • rename this._exact → this._children • exact matches will not have a '/' in a key because we split on the '/' character and RegExp will have a '/' in it • If an exact match can't be found first, check every regex on a node • Exact match will have preference over RegExp utils • add forEach helper • add isArray and isRegExp checker |
9 years ago | |
---|---|---|
.. | ||
route-node.js | 9 years ago | |
router.js | 9 years ago | |
utils.js | 9 years ago |