code: function routeMatch(route, url) {
    const matcher = `^${route.replace(/(:\w+)/g, '([\\w-]+)')}$`
    return url.match(matcher)
  }
docs: https://codereview.stackexchange.com/questions/117596/simple-javascript-router-with-params