RCS1262 CodeFix doesn't take into account repeated $
characters in interpolated raw strings
#1337
Labels
$
characters in interpolated raw strings
#1337
Product and Version Used: Roslynator.Analyzers v4.7.0
Steps to Reproduce: Define a string variable as an interpolated raw string using 2 or more
$
characters in front, with a corresponding number of curly braces around the interpolation expressions, e.g.This is correctly detected as not needing to be a raw string, but the CodeFix produces invalid code:
Actual Behavior:
Expected Behavior:
I'm creating these kinds of strings for
ExpressionTemplate
s of Serilog.Expressions, and using interpolated raw strings was how I had specified these so far.The text was updated successfully, but these errors were encountered: