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

(String) Fix partition returning wrong middle value #87

Merged
merged 2 commits into from
Jun 28, 2024

Conversation

csparker247
Copy link
Member

Fixes bug where partition would return an incorrect middle value. The following example now runs correctly:

auto [pre, mid, post] = partition("key=value", "=");

assert(pre == "key");
assert(mid == "="); // before, assertion error because mid is "=val" 
assert(post == "value");

@csparker247 csparker247 changed the title (core) Fix String.partition returning wrong middle value (String) Fix partition returning wrong middle value Jun 28, 2024
@csparker247 csparker247 force-pushed the bugfix-string-partition branch from f29dab0 to 2802099 Compare June 28, 2024 20:43
@csparker247 csparker247 merged commit 107e9cc into develop Jun 28, 2024
4 checks passed
@csparker247 csparker247 deleted the bugfix-string-partition branch June 28, 2024 20:56
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