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

Expansion problem #6

Merged
merged 2 commits into from
Nov 9, 2023
Merged

Expansion problem #6

merged 2 commits into from
Nov 9, 2023

Conversation

ventsyv
Copy link
Owner

@ventsyv ventsyv commented Nov 9, 2023

When the group is in the begging of the pattern, the static string that came after was not being added correctly.
This was due to indexing problem (the index was not being incremented).
Instead of using an index, I changed the code to just check the size of the vector and append the static string to all items.

I also added unit test to verify that the fix works.

@ventsyv ventsyv merged commit 6e6cd86 into main Nov 9, 2023
1 check passed
@ventsyv ventsyv deleted the expansion_problem branch November 9, 2023 19:36
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.

1 participant