Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Fixed a bug in StringExtensions.IndexOfAny() #404

Merged
merged 1 commit into from
Apr 7, 2014

Conversation

DougSchmidt-AI
Copy link
Contributor

Previous version would only return the earliest position when all needles were present.
If the last needle was missing, -1 would be returned even if other needles were present.

Previous version would only return the earliest position when all needles were present.
If the last needle was missing, -1 would be returned even if other needles were present.
@DougSchmidt-AI
Copy link
Contributor Author

Note that once this is merged, you'll also need to fix the logic in this OrmLite commit:

From:

var singleTable = tables.ToLower().IndexOfAny("join", ",") >= 0;

To:

var singleTable = tables.ToLower().IndexOfAny("join", ",") < 0;

mythz added a commit that referenced this pull request Apr 7, 2014
Fixed a bug in StringExtensions.IndexOfAny()
@mythz mythz merged commit 8c32aea into ServiceStack:master Apr 7, 2014
@mythz
Copy link
Member

mythz commented Apr 7, 2014

ok cheers, thx Doug.

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

Successfully merging this pull request may close these issues.

2 participants