mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
router updates
This commit is contained in:
@ -30,8 +30,8 @@ class StaticSegment {
|
||||
this.regex = escapeRegex(string);
|
||||
}
|
||||
|
||||
generate(params) {
|
||||
return this.string;
|
||||
generate() {
|
||||
return this.regex;
|
||||
}
|
||||
}
|
||||
|
||||
@ -49,7 +49,6 @@ class DynamicSegment {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class StarSegment {
|
||||
constructor(name) {
|
||||
this.regex = "(.+)";
|
||||
@ -124,8 +123,6 @@ export class PathRecognizer {
|
||||
constructor(path) {
|
||||
this.segments = [];
|
||||
|
||||
// TODO: use destructuring assignment
|
||||
// see https://github.com/angular/ts2dart/issues/158
|
||||
var parsed = parsePathString(path);
|
||||
var specificity = parsed['specificity'];
|
||||
var segments = parsed['segments'];
|
||||
|
Reference in New Issue
Block a user