Skip to content

Conversation

NickCraver
Copy link
Collaborator

This changes the regex to use RegexOptions.CultureInvariant and adds an easy way to do tests like this in the future with [Fact, TestCulture("tr-TR")] for example, which will set and restore the culture for a specific test.

Before/after break/fix test included for the Turkish case.

This changes the regex to use RegexOptions.CultureInvariant and adds an easy way to do tests like this in the future with `[Fact, TestCulture("tr-TR")]` for example, which will set and restore the culture for a specific test.
@NickCraver NickCraver requested a review from mgravell January 22, 2023 14:05
@NickCraver NickCraver linked an issue Jan 22, 2023 that may be closed by this pull request
@mgravell
Copy link
Collaborator

Nice attribute approach

@mgravell
Copy link
Collaborator

(I've eyeballed the other Regex usages, and they're very specific to the point where culture sensitivity doesn't really apply and isn't a factor as far as I can tell)

@NickCraver NickCraver merged commit d8aa7f8 into main Jan 24, 2023
@NickCraver NickCraver deleted the craver/invariant-params branch January 24, 2023 15:57
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.

ParameterExtractor of cultureInfo issue

3 participants