You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(UrlMatcherFactory): merge MatcherConfig into UrlMatcherFactory
- Previously, matcherConfig was a global object, exported from its own es6 module.
- Now, matcherConfig is stored per-instance on the UrlMatcherFactory
- Previously, Param.from* methods were static on Param class.
- Now, urlMatcherFactory has `paramFactory` for creating Param objects
Copy file name to clipboardExpand all lines: src/url/urlMatcher.ts
+4-3
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ import {DefType} from "../params/param";
15
15
import{unnestR}from"../common/common";
16
16
import{arrayTuples}from"../common/common";
17
17
import{RawParams}from"../params/interface";
18
+
import{ParamFactory}from"./interface";
18
19
19
20
/** @hidden */
20
21
functionquoteRegExp(string: any,param?: any){
@@ -114,7 +115,7 @@ export class UrlMatcher {
114
115
* - `caseInsensitive` - `true` if URL matching should be case insensitive, otherwise `false`, the default value (for backward compatibility) is `false`.
115
116
* - `strict` - `false` if matching against a URL with a trailing slash should be treated as equivalent to a URL without a trailing slash, the default value is `true`.
0 commit comments