Closed
Description
Version
3.1.3
Reproduction link
https://jsfiddle.net/j4s8ka1v/
Steps to reproduce
Unfortunately the above reproduction link does not reproduce the issue, not sure why the tokensToFunction method isnt used in the jsfiddle. But I've traced the issue to tokensToFunction
from path-to-regexp
. The issue seems to have been fixed in v3.1.0 due to this pr. You can check eg dist/vue-router.esm.js
to see the RegExp does not set the i
modifier
That makes this report more or less a fyi / request to upgrade path-to-regexp
😃
Locally the error is caused by a route similar to
routes: [{
path: "/:locale(en|pt-br)?/:source(.*)?",
component: myComponent,
}],
which fails when you browse to e.g. /pt-BR/path
:
What is expected?
That the token / param is matched case-insensitively
What is actually happening?
It doesnt, causing a missing param error