Skip to content

Commit

Permalink
Simplify path regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Eran Hammer committed Feb 5, 2013
1 parent d320b2b commit 2c4c97e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ internals.Route.prototype._generateRegex = function () {
segmentRX += '((?:[^\\/]+)(?:\\/(?:[^\\/]+)){' + (multiCount - 1) + '})';
}
else {
segmentRX += '((?:[^\\/]+)(?:\\/(?:[^\\/]+))*\\/?)';
} // 12 23 4 43 1
segmentRX += '(.*)';
}
}
else {
segmentRX += '([^\\/]+)';
Expand Down

0 comments on commit 2c4c97e

Please sign in to comment.