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

Adds option for str_count to allow overlapping matches #23

Merged
merged 3 commits into from
Dec 4, 2024
Merged

Conversation

rdboyes
Copy link
Member

@rdboyes rdboyes commented Dec 4, 2024

Needed this for advent of code! This keeps the previous behaviour as the default, so it won't break any existing code, but allows a kwarg overlap to be set to true if you want to count overlaps.

@rdboyes rdboyes requested a review from drizk1 December 4, 2024 14:59
@drizk1
Copy link
Member

drizk1 commented Dec 4, 2024

Love it. Advent of code is really improving tidierstrings

@drizk1 drizk1 merged commit 007e6b3 into main Dec 4, 2024
3 checks passed
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.

2 participants