]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
test(matcher): proper non greedy
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 15 Jan 2021 09:05:33 +0000 (10:05 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 15 Jan 2021 09:06:28 +0000 (10:06 +0100)
__tests__/matcher/pathParser.spec.ts

index 6c663a9b4f1139f022ebc0b429e88687c8f97f17..6cff8d4ecf918b2adefe499d5466cdcddb55c25b 100644 (file)
@@ -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',
       })
     })