Skip to content

Commit 9a3d015

Browse files
fix(urlMatcher): default strict mode to trye
1 parent 5160736 commit 9a3d015

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/url/urlMatcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export class UrlMatcher {
9393
constructor(public pattern: string, public config: any) {
9494
this.config = defaults(this.config, {
9595
params: {},
96-
strict: false,
96+
strict: true,
9797
caseInsensitive: false,
9898
paramMap: identity
9999
});

src/url/urlMatcherConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {isDefined, isString} from "../common/common";
33

44
class MatcherConfig {
55
_isCaseInsensitive: boolean = false;
6-
_isStrictMode: boolean = false;
6+
_isStrictMode: boolean = true;
77
_defaultSquashPolicy: (boolean|string) = false;
88

99
caseInsensitive(value?: boolean): boolean {

0 commit comments

Comments
 (0)