react-router
react-router copied to clipboard
Fix support for optional static segments
Added support and tests for optional static segments in matchPath. According to the docs they should be supported but were not.
Before the fix the pattern "/user/admin?" would match "/user/admi" and "/user/admin" but not "/user".