#978581 libjs-vue-router: mismatched path-to-regexp

#978581#5
Date:
2020-12-28 21:00:18 UTC
From:
To:
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));
  }