1 write to Regex
Microsoft.CodeAnalysis (1)
CommandLine\AnalyzerConfig.SectionNameMatching.cs (1)
29Regex = regex;
32 references to Regex
Microsoft.CodeAnalysis (2)
CommandLine\AnalyzerConfig.SectionNameMatching.cs (2)
37return Regex.IsMatch(s); 40var match = Regex.Match(s);
Microsoft.CodeAnalysis.UnitTests (30)
Analyzers\AnalyzerConfigTests.cs (30)
343Assert.Equal("^.*/abc$", matcher.Regex.ToString()); 355Assert.Equal("^.*/[^/]*$", matcher.Regex.ToString()); 366Assert.Equal("^.*/[^/]*\\.cs$", matcher.Regex.ToString()); 383Assert.Equal("^.*/.*\\.cs$", matcher.Regex.ToString()); 393Assert.Equal("^.*/\\.\\.\\.$", matcher.Regex.ToString()); 413Assert.Equal("^.*/ab.def$", matcher.Regex.ToString()); 426Assert.Equal("^.*/ab\\\\c$", matcher.Regex.ToString()); 437Assert.Equal("^.*/\\*.*\\*\\*[^/]*$", matcher.Regex.ToString()); 449Assert.Equal("^.*/\\?.\\?[^/]*\\?.$", matcher.Regex.ToString()); 463Assert.Equal(@"^.*/abc\{}def$", matcher.Regex.ToString()); 475Assert.Equal("^.*/abc,def$", matcher.Regex.ToString()); 488Assert.Equal("^.*/[^/]*\\.(?:cs|vb|fs)$", matcher.Regex.ToString()); 518Assert.Equal("^/(?:[^/]*\\.cs|subdir/test\\.vb)$", matcher.Regex.ToString()); 532Assert.Equal("^.*/(?:)$", matcher.Regex.ToString()); 544Assert.Equal("^.*/(?:[^/]*\\.cs)$", matcher.Regex.ToString()); 570Assert.Equal("^.*/(?:test(?:\\.cs|\\.vb)|other\\.(?:a(?:bb|cc)))$", matcher.Regex.ToString()); 590Assert.Equal("^.*/ab(?:-)cd(?:-|)ef$", matcher.Regex.ToString()); 604Assert.Equal("^.*/ab(?:cs|vb|fs)cd$", matcher.Regex.ToString()); 724Assert.Equal(@"^.*/[^/]*\.[cf]s$", matcher.Regex.ToString()); 735Assert.Equal(@"^.*/[^/]*\.[^cf]s$", matcher.Regex.ToString()); 748Assert.Equal(@"^.*/[^/]*\.[\^cf]s$", matcher.Regex.ToString()); 762Assert.Equal("^.*/[0-9]x$", matcher.Regex.ToString()); 775Assert.Equal("^.*/[^0-9]x$", matcher.Regex.ToString()); 788Assert.Equal("^.*/[ab0-9]x$", matcher.Regex.ToString()); 833Assert.Equal(@"^.*/[\[a]bc$", matcher.Regex.ToString()); 848Assert.Equal(@"^.*/[-ac]bd$", matcher.Regex.ToString()); 863Assert.Equal(@"^.*/[ac-]bd$", matcher.Regex.ToString()); 877Assert.Equal(@"^.*/[ab]]cd$", matcher.Regex.ToString()); 892Assert.Equal(@"^.*/[ab\\]cd$", matcher.Regex.ToString()); 905Assert.Equal(@"^.*/ab\[cd$", matcher.Regex.ToString());