FormidableLabs / redux-little-router

A tiny router for Redux that lets the URL do the talking.
MIT License
1.04k stars 114 forks source link

Routes are too greedy in fragments #232

Open nooysters opened 6 years ago

nooysters commented 6 years ago

I understand why a parent fragment would act as a greedy match because we want to render all the content within nested fragments. The problem I have is that it is matching strings as if they were written like /parent-route-string* and not /parent-route-string(/*). So a fragment with forRoute='/parent-route-string' matches /parent-route-string-and-some-more-text-here which seems like a bug.