Skip to content

Commit

Permalink
Update analyzers/tests/SonarAnalyzer.UnitTest/TestCases/RegularExpres…
Browse files Browse the repository at this point in the history
…sions/RegexShouldNotContainMultipleSpaces.cs

Co-authored-by: Pavel Mikula <[email protected]>
  • Loading branch information
Corniel and pavel-mikula-sonarsource committed Jul 20, 2023
1 parent 7c32fbb commit 990ac77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Noncompliant

void Ctor()
{
var patternOnly = new Regex("multiple white spaces"); // Noncompliant {{Regular expressions should not contain multiple spaces.}}
var patternOnly = new Regex("multiple white spaces"); // Noncompliant {{Regular expressions should not contain multiple spaces.}}
// ^^^^^^^^^^^^^^^^^^^^^^^^^

var withConst = new Regex(Prefix + "multiple white spaces"); // Noncompliant
Expand Down

0 comments on commit 990ac77

Please sign in to comment.