chinedufn / percy

Build frontend browser apps with Rust + WebAssembly. Supports server side rendering.
https://chinedufn.github.io/percy/
Apache License 2.0
2.27k stars 84 forks source link

Fix matching static after dynamic segment #203

Closed chinedufn closed 3 months ago

chinedufn commented 3 months ago

This commit fixes the route matching logic when a static segment comes after a dynamic segment.

For instance, before this commit the path "/5/bar" would match the route definition /:id/foo. This commit fixes that error.