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 <57188685+pavel-mikula-sonarsource@users.noreply.github.com>
  • Loading branch information
Corniel and pavel-mikula-sonarsource committed Jul 20, 2023
1 parent 7c64d8a commit 06c9b7e
Showing 1 changed file with 1 addition and 1 deletion.
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 06c9b7e

Please sign in to comment.