react-router icon indicating copy to clipboard operation
react-router copied to clipboard

Fix support for optional static segments

Open LadyTsukiko opened this issue 7 months ago • 2 comments

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".

LadyTsukiko avatar Jul 17 '24 08:07 LadyTsukiko