router updates

This commit is contained in:
Adam Bradley
2015-07-13 10:00:57 -05:00
parent 1427c254c5
commit 6576dd450e
13 changed files with 448 additions and 372 deletions

View File

@ -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'];