From: Eduardo San Martin Morote Date: Mon, 6 May 2019 15:21:02 +0000 (+0200) Subject: chore: comments X-Git-Tag: v4.0.0-alpha.0~389 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa2f121887c6c438c454d3b8954f79073c40d64b;p=thirdparty%2Fvuejs%2Frouter.git chore: comments --- diff --git a/src/matcher.ts b/src/matcher.ts index ccf4d135..8be13b2d 100644 --- a/src/matcher.ts +++ b/src/matcher.ts @@ -105,11 +105,12 @@ export class RouterMatcher { // TODO: refactor with type guards if ('path' in location) { - // we don't even need currentLocation here matcher = this.matchers.find(m => m.re.test(location.path)) // no need to resolve the path with the matcher as it was provided path = location.path + // TODO: should go away but stop matching + // TODO: warning of unused params if provided if (!matcher) throw new NoRouteMatchError(currentLocation, location) name = matcher.record.name