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

Remove overhead from RomanNumeralExtensions #1508

Merged
merged 1 commit into from
May 28, 2024

Conversation

stephentoub
Copy link
Contributor

  • Replace dictionary lookups with switch expression
  • Replace StringBuilder with span
  • Mark regex as ExplicitCapture

Also fixes #1507 by making the regex CultureInvariant.

- Replace dictionary lookups with switch expression
- Replace StringBuilder with span
- Mark regex as ExplicitCapture
@SimonCropp
Copy link
Collaborator

@stephentoub thanks :)

@SimonCropp SimonCropp added this to the v3.0 milestone May 28, 2024
@SimonCropp SimonCropp merged commit 9907f3c into Humanizr:main May 28, 2024
3 checks passed
@stephentoub stephentoub deleted the romanopt branch May 28, 2024 12:46
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.

RomanNumeralExtensions.FromRoman incorrectly handles Latin Small Letter Dotless I
3 participants