fix(tests): fix tests
This commit is contained in:
@ -95,7 +95,8 @@ export class PathMatcher implements IMatcher<IPathMatchResult> {
|
||||
if (normalizedPattern.includes('*') && match.length > paramNames.length + 1) {
|
||||
const wildcardCapture = match[match.length - 1];
|
||||
if (wildcardCapture) {
|
||||
pathRemainder = wildcardCapture;
|
||||
// Ensure pathRemainder includes leading slash if it had one
|
||||
pathRemainder = wildcardCapture.startsWith('/') ? wildcardCapture : '/' + wildcardCapture;
|
||||
pathMatch = normalizedPath.substring(0, normalizedPath.length - wildcardCapture.length);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user