Skip to content

Use ordinal string comparisons - #1805

Merged
SimonCropp merged 1 commit into
mainfrom
Use-ordinal-string-comparisons
Jul 18, 2026
Merged

Use ordinal string comparisons#1805
SimonCropp merged 1 commit into
mainfrom
Use-ordinal-string-comparisons

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

Add explicit StringComparison.Ordinal to StartsWith checks in exception parsing and convention/plugin detection. This avoids culture-sensitive behavior and makes matching of Verify-specific prefixes deterministic.

Add explicit `StringComparison.Ordinal` to `StartsWith` checks in exception parsing and convention/plugin detection. This avoids culture-sensitive behavior and makes matching of Verify-specific prefixes deterministic.
@SimonCropp SimonCropp added this to the 31.26.0 milestone Jul 18, 2026
@SimonCropp
SimonCropp merged commit 5d819eb into main Jul 18, 2026
7 checks passed
@SimonCropp
SimonCropp deleted the Use-ordinal-string-comparisons branch July 18, 2026 10:14
This was referenced Jul 20, 2026
This was referenced Aug 3, 2026
agocke pushed a commit to serdedotnet/serde that referenced this pull request Aug 12, 2026
Updated [Verify](https://github.com/VerifyTests/Verify) from 31.25.0 to
31.28.0.

<details>
<summary>Release notes</summary>

_Sourced from [Verify's
releases](https://github.com/VerifyTests/Verify/releases)._

## 31.28.0

- [x] [#​1822](VerifyTests/Verify#1822) Option
to not scrub N instance Guids
- [x] [#​1825](VerifyTests/Verify#1825) Add
GuidFormats option to ScrubInlineGuids
- [x] [#​1826](VerifyTests/Verify#1826) Add opt
in newline tolerance settings

## 31.27.0

- [x] [#​1809](VerifyTests/Verify#1809) Emit
received→verified mapping for out-of-process accept/review tooling
- [x] [#​1810](VerifyTests/Verify#1810) Allow a
stream target for a text extension
- [x] [#​1812](VerifyTests/Verify#1812) Received
map file

## 31.26.0

- [x] [#​1664](VerifyTests/Verify#1664)
GuidScrubber support N format
- [x] [#​1803](VerifyTests/Verify#1803) Expose
ssim
- [x] [#​1804](VerifyTests/Verify#1804) Span
based scrubbers
- [x] [#​1805](VerifyTests/Verify#1805) Use
ordinal string comparisons
- [x] [#​1806](VerifyTests/Verify#1806) N format
guids
- [x] [#​1807](VerifyTests/Verify#1807) Align
received naming single tfm
- [x] [#​1808](VerifyTests/Verify#1808) Fix
unique directory received multi tfm

Commits viewable in [compare
view](VerifyTests/Verify@31.25.0...31.28.0).
</details>

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=Verify&package-manager=nuget&previous-version=31.25.0&new-version=31.28.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant