From: Eduardo San Martin Morote Date: Fri, 15 Jan 2021 09:05:33 +0000 (+0100) Subject: test(matcher): proper non greedy X-Git-Tag: v4.0.4~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfc0489891b292e220bcae8db02375f765f10ffc;p=thirdparty%2Fvuejs%2Frouter.git test(matcher): proper non greedy --- diff --git a/__tests__/matcher/pathParser.spec.ts b/__tests__/matcher/pathParser.spec.ts index 6c663a9b..6cff8d4e 100644 --- a/__tests__/matcher/pathParser.spec.ts +++ b/__tests__/matcher/pathParser.spec.ts @@ -664,9 +664,9 @@ describe('Path parser', () => { }) it('catch all non-greedy', () => { - matchParams('/:rest(.*?)/b/:other(.*)', '/a/b/c', { + matchParams('/:rest(.*?)/b/:other(.*)', '/a/b/c/b/d', { rest: 'a', - other: 'c', + other: 'c/b/d', }) })