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

Add secondary pattern support for pattern arg #1144

Merged
merged 7 commits into from
Nov 24, 2022

Conversation

rich-iannone
Copy link
Member

@rich-iannone rich-iannone commented Nov 24, 2022

This provides support for secondary patterns whereby segments of a pattern may be removed should there be a missing value within the new <</>> delimiters.

For example, "<<{1} <<{2} << ({3}) >>>>>>" might yield "a b (c)" given no position having missing values. The same pattern would yield "a " with {2} being missing and "a b " with {3} missing.

Fixes: #1118

@rich-iannone rich-iannone marked this pull request as ready for review November 24, 2022 21:23
@rich-iannone rich-iannone merged commit 5985620 into master Nov 24, 2022
@rich-iannone rich-iannone deleted the cols-merge-pattern-enhance branch November 24, 2022 21:38
@erhoppe
Copy link

erhoppe commented Nov 26, 2022

Sweet! Thanks so much for addressing this so quickly! :D I really appreciate it.

@rich-iannone
Copy link
Member Author

@erhoppe you’re welcome! I forgot to follow up on this in the Issue but I’m glad you noticed this. Let me know if there are any shortcomings or other issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handling missing values in a col_merge
2 participants