Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix regression to allow for empty-string paths #6942

Merged
merged 1 commit into from Sep 27, 2019

Conversation

heygrady
Copy link
Contributor

@heygrady heygrady commented Sep 27, 2019

fixes #6941
related #6715

@@ -35,7 +35,8 @@ function matchPath(pathname, options = {}) {
const paths = [].concat(path);

return paths.reduce((matched, path) => {
if (!path) return null;
// https://github.com/ReactTraining/react-router/issues/6941
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// https://github.com/ReactTraining/react-router/issues/6941

The link to this will be in their history, so this comment isn't needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@timdorr
Copy link
Member

timdorr commented Sep 27, 2019

Thanks!

@timdorr timdorr merged commit 29e02a3 into remix-run:master Sep 27, 2019
@mjackson
Copy link
Member

Thanks for getting this merged, @timdorr. I tried to push a 5.1.1 release earlier today to fix the <Link ref> issue, but the release failed. I can't reproduce the failure locally, so I'm going to have to debug this afternoon. I'll push this fix in 5.1.1 and update the website when I'm done.

@lock lock bot locked as resolved and limited conversation to collaborators Nov 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression: empty string paths no longer match
3 participants