[Pkg-javascript-devel] Bug#978581: libjs-vue-router mismatched path-to-regexp
Oliver Giles
ohw.giles at gmail.com
Mon Dec 28 21:00:18 GMT 2020
Package: libjs-vue-router
Version: 3.4.9+ds-1
3.4.9+ds-1 packages an incompatible version of path-to-regexp. This was
reported and fixed in bug #927254, but is now reproducible again in
version 3.4.9+ds-1.
Specifically, the tokensToRegExp function is lacking the attachKeys
wrapper around its return value.
>From upstream 3.4.9:
function tokensToRegExp (tokens, keys, options) {
[...]
return attachKeys(new RegExp('^' + route, flags(options)), keys)
}
>From 3.4.9+ds-1
function tokensToRegexp(tokens, keys, options) {
[...]
return new RegExp(route, flags(options));
}
More information about the Pkg-javascript-devel
mailing list