Patch Changes
-
Matches return decoded values for params in hostname
pattern = new RoutePattern('://:subdomain.example.com/posts/:slug') url = new URL('https://café.example.com/posts/123') pattern.match(url)?.params.subdomain // Before -> 'xn--caf-dma' // After -> 'café' url = new URL('https://北京.example.com/posts/123') pattern.match(url)?.params.subdomain // Before -> 'xn--1lq90i' // After -> '北京'