Repository navigation
Revert "Fix incorrect handling of character range and capitalization … - #59425
Conversation
|
Tagging subscribers to this area: @eerhardt, @dotnet/area-system-text-regularexpressions |
jeffhandley
left a comment
There was a problem hiding this comment.
Just to confirm, this was a straight/clean revert with no conflicts; correct?
Yup yup. No conflicts. I verified every single line too locally before putting it up. |
|
Can we add a test like Assert.Equal(new Regex("[\u012F-\u0130]", RegexOptions.IgnoreCase).IsMatch("\u0130")), new Regex("[\u012F\u0130]", RegexOptions.IgnoreCase).IsMatch("\u0130")));That should fail before this change pass after, and presumably continue to pass if we take another run at a fix later. |
|
I had suggested this approach to @pgovind. (#58958 (comment))
@danmoseley / @stephentoub, I thought the lowest-risk thing to port into 6.0 would be the simple revert, and that by backporting this PR we'd be minimizing the risk to 6.0, but then following up with another PR into main to add the tests suggested would be a good place for 7.0 to start out in. Would you rather see the PR to be ported with the fewest lines of code changed as possible in this PR, or in the release? |
|
Thanks. I'll defer to Dan, but my preference would be smallest diff from release/6.0. |
I thought keeping the revert clean made sense too, so this PR has only the revert. I do have a follow up ready with a unit test similar to the one you're suggesting here: https://github.com/pgovind/runtime/tree/add_regression_tests If you'd rather see the unit tests as part of this PR, I can push the changes to this branch. Up to you @danmoseley |
|
I'm fine with it being a strict revert. I could go either way but in this case if we minimized this change I'm not sure whether it would actually make it less risky... I would prefer to include your tests in this PR, as it's normal to include change+tests together. Nit - in your branch I don't see a test quite like the one above, only a test for |
e989a69 to
420c801
Compare
|
It wasn't possible to do a clean revert anymore with the source gen changes already merged (tagging @jeffhandley, since you already approved the PR). I did double check the revert here against the original commit and it's as clean as it can be I think. |
420c801 to
6bb1ff6
Compare
|
Ok done, now this is a minimal change. |
jeffhandley
left a comment
There was a problem hiding this comment.
Thanks, @pgovind. Sorry for the poor guidance on how to approach the revert.
|
I just realized that you may have written the tests the way you did with the goal of a clean backport to release/6.0. If that's the case, you can ignore my feedback and we can apply it subsequently. |
…in regex (#42282)"
This reverts commit 7c9c347.
Fixes #58958.
This reverts #42282 as the suggested fix for #58958. I'll have a follow up PR to add the reverted tests and disable them for a later fix
cc @danmoseley