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(populate): handle multiple spaces when specifying paths to populate using space-delimited paths #13984

Merged
merged 1 commit into from Oct 17, 2023

Conversation

vkarpov15
Copy link
Collaborator

Fix #13951

Summary

Right now, populate('user fans') will fail with a StrictPopulateError because of the extra space. I think it is sufficiently reasonable to split by multiple spaces, so populate('user fans') is equivalent to populate('user fans'). This may cause issues in cases where path names have whitespace characters, but given that it isn't currently possible to populate a space-delimited path anyway, I don't think that is concerning.

Examples

Copy link
Collaborator

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

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

LGTM, seems like it also fixes a bug that checked for tabs but did not actually split by them

@vkarpov15 vkarpov15 merged commit d7b2bde into master Oct 17, 2023
42 checks passed
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-13951 branch October 17, 2023 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants