Uh oh!
There was an error while loading. Please reload this page.
Fix double-negatives with MatchCharacterClass - #62636
Conversation
ghost
commented
Dec 10, 2021
Tagging subscribers to this area: @dotnet/area-system-text-regularexpressions |
joperezr
left a comment
There was a problem hiding this comment.
LGTM, generated code does look much better.
Separate comment: even though I know the purpose of this is purely for readability purposes (therefore not very applicable to Compiled) would it make sense to make the changes in MatchCharacterClass on Compiled engine as well just for consistency purposes?
joperezr
commented
Dec 10, 2021
BTW it's been a bit since I last saw that many XORs in C# 😄 |
stephentoub
commented
Dec 10, 2021
If you need it, flaunt it 😄
Sure, I can make that change. |
Also add missing set description rendering for \d, \D
3802b21 to
c208114Comparestephentoub
commented
Dec 10, 2021
Actually, I took a look at it, and best case it saves us a single ceq operation, while adding additional complexity. This particular function is one with a signature that already differs from what's in RegexCompiled, e.g. to be able to pass out additional declarations, so I don't think this really hampers the consistency much, and I'd prefer not to augment RegexCompiler with it. |
Fixes#62622
cc: @joperezr