149 references to IsMatch
AnalyzerRunner (1)
Options.cs (1)
163testDocumentMatch = documentPath => expression.IsMatch(documentPath);
Aspire.EndToEnd.Tests (1)
tests\Shared\WorkloadTesting\TemplateCustomHive.cs (1)
87.Where(p => packageNameRegex.IsMatch(Path.GetFileName(p)));
Aspire.Playground.Tests (1)
AppHostTests.cs (1)
49var tasks = testEndpoints.WaitForTexts.Select(x => app.WaitForTextAsync(log => new Regex(x.Pattern).IsMatch(log), x.ResourceName)).ToArray();
Aspire.Workload.Tests (2)
tests\Shared\WorkloadTesting\TemplateCustomHive.cs (1)
87.Where(p => packageNameRegex.IsMatch(Path.GetFileName(p)));
WorkloadTestsBase.cs (1)
122if (inTest && CommentLineRegex().IsMatch(line))
dotnet-dev-certs (2)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
889if (isSymlink && hashRegex.IsMatch(file.Name)) 893else if (extensionRegex.IsMatch(file.Name))
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\schema\FacetChecker.cs (2)
883if (!regex.IsMatch(value)) 1481if (!LanguagePattern.IsMatch(s))
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
71matchedEntries = entries.Where(entry => expectedRegex.IsMatch(entry.Message)).ToArray();
src\Servers\IIS\IIS\test\IIS.Shared.FunctionalTests\ApplicationInitializationTests.cs (1)
72var matchedEntries = entries.Where(entry => expectedRegex.IsMatch(entry.Message)).ToArray();
IIS.LongTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
71matchedEntries = entries.Where(entry => expectedRegex.IsMatch(entry.Message)).ToArray();
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1517var matchedEntries = entries.Where(entry => expectedRegex.IsMatch(entry.Message)).ToArray();
IIS.NewHandler.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
71matchedEntries = entries.Where(entry => expectedRegex.IsMatch(entry.Message)).ToArray();
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1517var matchedEntries = entries.Where(entry => expectedRegex.IsMatch(entry.Message)).ToArray();
IIS.NewShim.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
71matchedEntries = entries.Where(entry => expectedRegex.IsMatch(entry.Message)).ToArray();
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1517var matchedEntries = entries.Where(entry => expectedRegex.IsMatch(entry.Message)).ToArray();
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
71matchedEntries = entries.Where(entry => expectedRegex.IsMatch(entry.Message)).ToArray();
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
71matchedEntries = entries.Where(entry => expectedRegex.IsMatch(entry.Message)).ToArray();
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1517var matchedEntries = entries.Where(entry => expectedRegex.IsMatch(entry.Message)).ToArray();
illink (1)
Microsoft.AspNetCore.Components (1)
src\Http\Routing\src\Constraints\RegexRouteConstraint.cs (1)
99return Constraint.IsMatch(parameterValueString);
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
DebugProxyLauncher.cs (1)
198if (ApplicationStartedRegex.IsMatch(eventArgs.Data) && !isFirefox)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (2)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
889if (isSymlink && hashRegex.IsMatch(file.Name)) 893else if (extensionRegex.IsMatch(file.Name))
Microsoft.AspNetCore.Routing (2)
Constraints\RegexRouteConstraint.cs (2)
99return Constraint.IsMatch(parameterValueString); 108return Constraint.IsMatch(literal);
Microsoft.AspNetCore.Server.Kestrel.Core (2)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
889if (isSymlink && hashRegex.IsMatch(file.Name)) 893else if (extensionRegex.IsMatch(file.Name))
Microsoft.Build (9)
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
184if (manifest.ResolvableSdkRegex.IsMatch(sdk.Name))
BuildCheck\Infrastructure\EditorConfig\EditorConfigGlobsMatcher.cs (1)
42return Regex.IsMatch(s);
Construction\ProjectRootElement.cs (1)
1966return String.IsNullOrEmpty(contents) || XmlDeclarationRegEx.Value.IsMatch(contents);
Definition\ToolsetReader.cs (1)
200foreach (var d in Directory.GetDirectories(xbuildToolsetsDir).Where(d => r.IsMatch(d)))
FileMatcher.cs (1)
1086return recursionState.SearchData.RegexFileMatch.IsMatch(file);
Globbing\MSBuildGlob.cs (1)
108return _state.Value.Regex.IsMatch(normalizedString);
Utilities\EngineFileUtilities.cs (2)
551item.IsMatch("foo"); 564return _regexMatchCache.Value.GetOrAdd(fileSpec, file => s_lazyWildCardExpansionRegexes.Any(regex => regex.IsMatch(fileSpec)));
Utilities\FileSpecMatchTester.cs (1)
83return _regex.IsMatch(normalizedFileToMatch);
Microsoft.Build.Engine.UnitTests (34)
Evaluation\ExpressionShredder_Tests.cs (1)
1265else if (s_listOfItemVectorsWithoutSeparatorsPattern.IsMatch(batchableObjectParameter))
FileUtilitiesRegex_Tests.cs (33)
48DrivePattern.IsMatch(s).ShouldBeTrue(); 50DrivePattern.IsMatch(s).ShouldBeTrue(); 74StartWithDrivePattern.IsMatch(s).ShouldBeTrue(); 76StartWithDrivePattern.IsMatch(s).ShouldBeTrue(); 104DrivePattern.IsMatch(value).ShouldBe(false); 105StartWithDrivePattern.IsMatch(value).ShouldBe(false); 130StartWithDrivePattern.IsMatch(value).ShouldBeTrue(); 149UncPattern.IsMatch(winDirectory).ShouldBe(false); 150UncPattern.IsMatch(unixDirectory).ShouldBe(false); 179StartsWithUncPattern.IsMatch(winDirectory).ShouldBeTrue(); 180StartsWithUncPattern.IsMatch(unixDirectory).ShouldBeTrue(); 224UncPattern.IsMatch(winDirectory).ShouldBeTrue(); 225UncPattern.IsMatch(unixDirectory).ShouldBeTrue(); 245StartsWithUncPattern.IsMatch(winDirectory).ShouldBeTrue(); 246StartsWithUncPattern.IsMatch(unixDirectory).ShouldBeTrue(); 280UncPattern.IsMatch(winDirectory).ShouldBeTrue(); 281UncPattern.IsMatch(unixDirectory).ShouldBeTrue(); 310StartsWithUncPattern.IsMatch(winDirectory).ShouldBeTrue(); 311StartsWithUncPattern.IsMatch(unixDirectory).ShouldBeTrue(); 345UncPattern.IsMatch(winDirectory).ShouldBe(false); 346UncPattern.IsMatch(unixDirectory).ShouldBe(false); 365StartsWithUncPattern.IsMatch(winDirectory).ShouldBeTrue(); 366StartsWithUncPattern.IsMatch(unixDirectory).ShouldBeTrue(); 410UncPattern.IsMatch(winDirectory).ShouldBe(false); 411UncPattern.IsMatch(unixDirectory).ShouldBe(false); 430StartsWithUncPattern.IsMatch(winDirectory).ShouldBe(false); 431StartsWithUncPattern.IsMatch(unixDirectory).ShouldBe(false); 473UncPattern.IsMatch(winDirectory).ShouldBe(false); 474UncPattern.IsMatch(unixDirectory).ShouldBe(false); 493StartsWithUncPattern.IsMatch(winDirectory).ShouldBe(false); 494StartsWithUncPattern.IsMatch(unixDirectory).ShouldBe(false); 533UncPattern.IsMatch(string.Empty).ShouldBeFalse(); 534StartsWithUncPattern.IsMatch(string.Empty).ShouldBeFalse();
Microsoft.Build.Framework (1)
Logging\AnsiDetector.cs (1)
45if (terminalsRegexes.Any(regex => regex.IsMatch(termType)))
Microsoft.Build.Tasks.Core (1)
FileMatcher.cs (1)
1086return recursionState.SearchData.RegexFileMatch.IsMatch(file);
Microsoft.Build.Utilities.Core (3)
CommandLineBuilder.cs (2)
195bool hasAllUnquotedCharacters = AllowedUnquoted.IsMatch(parameter); 196bool hasSomeQuotedCharacters = DefinitelyNeedQuotes.IsMatch(parameter);
FileMatcher.cs (1)
1086return recursionState.SearchData.RegexFileMatch.IsMatch(file);
Microsoft.Cci.Extensions (1)
Extensions\CSharp\CSharpCciExtensions.cs (1)
652return s_isKeywordRegex.IsMatch(s);
Microsoft.CodeAnalysis (1)
CommandLine\AnalyzerConfig.SectionNameMatching.cs (1)
41return Regex.IsMatch(s);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (1)
304return Regex.IsMatch(s);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.SingleLineRewriter.cs (1)
62if (s_newlinePattern.IsMatch(token.Text))
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTrackingDiagnosticAnalyzer.cs (1)
29return base.IsAnalyzeNodeSupported(syntaxKind) && !s_omittedSyntaxKindRegex.IsMatch(syntaxKind.ToString());
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.SingleLineRewriter.cs (1)
62if (s_newlinePattern.IsMatch(token.Text))
Microsoft.CodeAnalysis.EditorFeatures (2)
EditorConfigSettings\Updater\SettingsUpdateHelper.cs (2)
175if (s_optionEntryPattern.IsMatch(curLineText)) 188else if (s_headerPattern.IsMatch(curLineText.Trim()))
Microsoft.CodeAnalysis.Features (4)
CodeFixes\Configuration\ConfigurationUpdater.cs (4)
454if (s_optionEntryPattern.IsMatch(curLineText)) 562else if (!isGlobalConfig && s_headerPattern.IsMatch(curLineText.Trim())) 599if (headerRegex.IsMatch(relativePath)) 640else if (relativePath.IsEmpty() && new Regex(fileName).IsMatch(relativePath))
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\TrackingDiagnosticAnalyzer.cs (1)
93return !s_omittedSyntaxKindRegex.IsMatch(syntaxKind.ToString());
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SingleLineRewriter.vb (1)
46If s_newlinePattern.IsMatch(token.Text) Then
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
BasicTrackingDiagnosticAnalyzer.vb (1)
21Return MyBase.IsAnalyzeNodeSupported(syntaxKind) AndAlso Not s_omittedSyntaxKindRegex.IsMatch(syntaxKind.ToString())
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SingleLineRewriter.vb (1)
46If s_newlinePattern.IsMatch(token.Text) Then
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (1)
304return Regex.IsMatch(s);
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PublishArtifactsInManifestBase.cs (1)
408if (FourPartVersionRegex.IsMatch(package.Version))
Microsoft.DotNet.Helix.Sdk (1)
ProvisioningProfileProvider.cs (1)
131if (!s_topLevelAppPattern.IsMatch(entry.FullName))
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\ValidateUsageAgainstBaseline.cs (1)
170return ignoreUsageRegexes.Any(r => r.IsMatch(id));
Microsoft.Gen.Metrics (2)
Parser.cs (2)
203if (!_regexTagNames.IsMatch(dynDim)) 503if (!_regex.IsMatch(metricNameFromMethod))
Microsoft.Gen.MetricsReports (2)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (2)
203if (!_regexTagNames.IsMatch(dynDim)) 503if (!_regex.IsMatch(metricNameFromMethod))
Microsoft.Maui.Controls.DesignTools (1)
ColorDesignTypeConverter.cs (1)
203 if (RxColorHex.Value.IsMatch(str))
Microsoft.Maui.Resizetizer (1)
Utils.cs (1)
16 => rxResourceFilenameValidation.IsMatch(Path.GetFileNameWithoutExtension(filename));
Microsoft.ML.Core (1)
ComponentModel\ComponentCatalog.cs (1)
969return _nameRegex.IsMatch(name);
Microsoft.ML.Data (1)
EntryPoints\EntryPointNode.cs (1)
1098return token?.Value != null && _variableRegex.IsMatch(token.Value<string>());
Microsoft.ML.Predictor.Tests (4)
CompareBaselines.cs (4)
236if (_matchIter.IsMatch(line1) != _matchIter.IsMatch(line2)) 240while (line1 != null && _matchIter.IsMatch(line1)) 245while (line2 != null && _matchIter.IsMatch(line2))
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\FileIO\TextFieldParser.vb (1)
1332If m_WhiteSpaceRegEx.IsMatch(token) Then
MSBuild (1)
TerminalLogger\TerminalLogger.cs (1)
978ImmediateMessageRegex().IsMatch(message);
MSBuildTaskHost (1)
AnsiDetector.cs (1)
45if (terminalsRegexes.Any(regex => regex.IsMatch(termType)))
SemanticSearch.BuildTask (1)
GenerateFilteredReferenceAssembliesTask.cs (1)
254if ((pattern.SymbolKinds & kind) == kind && pattern.MetadataNamePattern.IsMatch(id))
System.Configuration.ConfigurationManager (1)
System\Configuration\RegexStringValidator.cs (1)
30if (value is string s && !_regex.IsMatch(s))
System.Data.Common (12)
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
421bool compValue = s_connectionStringValidKeyRegex.IsMatch(keyname);
System\Data\Common\DBCommandBuilder.cs (7)
91if (!_parameterNameParser.IsMatch(columnName)) 134if (_parameterNameParser.IsMatch(DefaultIsNullPrefix)) 138else if (_parameterNameParser.IsMatch(AlternativeIsNullPrefix)) 142else if (_parameterNameParser.IsMatch(AlternativeIsNullPrefix2)) 150if (_parameterNameParser.IsMatch(DefaultOriginalPrefix)) 154else if (_parameterNameParser.IsMatch(AlternativeOriginalPrefix)) 158else if (_parameterNameParser.IsMatch(AlternativeOriginalPrefix2))
System\Data\Common\DbConnectionOptions.cs (4)
60if ((null == keyName) || !s_connectionStringValidKeyRegex.IsMatch(keyName)) 92!s_connectionStringQuoteOdbcValueRegex.IsMatch(keyValue)) 103else if (s_connectionStringQuoteValueRegex.IsMatch(keyValue)) 187if ((null == keyword) || !s_connectionStringValidKeyRegex.IsMatch(keyword))
System.Data.Odbc (5)
Common\System\Data\Common\DbConnectionOptions.cs (4)
122if ((null == keyName) || !s_connectionStringValidKeyRegex.IsMatch(keyName)) 153!s_connectionStringQuoteOdbcValueRegex.IsMatch(keyValue)) 164else if (s_connectionStringQuoteValueRegex.IsMatch(keyValue)) 449if ((null == keyword) || !s_connectionStringValidKeyRegex.IsMatch(keyword))
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
421bool compValue = s_connectionStringValidKeyRegex.IsMatch(keyname);
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\DataContract.cs (1)
2237Globals.FullSRSInternalsVisibleRegex.IsMatch(internalsVisibleAttributeAssemblyName))
System.Private.Xml (2)
System\Xml\Schema\FacetChecker.cs (2)
875if (!regex.IsMatch(value)) 1459if (!LanguageRegex.IsMatch(s))
System.Text.RegularExpressions (4)
System\Text\RegularExpressions\Regex.Match.cs (3)
14RegexCache.GetOrAdd(pattern).IsMatch(input); 34RegexCache.GetOrAdd(pattern, options, s_defaultMatchTimeout).IsMatch(input); 51RegexCache.GetOrAdd(pattern, options, matchTimeout).IsMatch(input);
System\Text\RegularExpressions\Symbolic\UnicodeCategoryRangesGenerator.cs (1)
53if (whitespaceRegex.IsMatch(ch.ToString()))
Templates.Blazor.Tests (2)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
889if (isSymlink && hashRegex.IsMatch(file.Name)) 893else if (extensionRegex.IsMatch(file.Name))
Templates.Blazor.WebAssembly.Auth.Tests (2)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
889if (isSymlink && hashRegex.IsMatch(file.Name)) 893else if (extensionRegex.IsMatch(file.Name))
Templates.Blazor.WebAssembly.Tests (2)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
889if (isSymlink && hashRegex.IsMatch(file.Name)) 893else if (extensionRegex.IsMatch(file.Name))
Templates.Mvc.Tests (2)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
889if (isSymlink && hashRegex.IsMatch(file.Name)) 893else if (extensionRegex.IsMatch(file.Name))
Templates.Tests (2)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
889if (isSymlink && hashRegex.IsMatch(file.Name)) 893else if (extensionRegex.IsMatch(file.Name))
xunit.assert (1)
StringAsserts.cs (1)
1384 if (actualString == null || !expectedRegex.IsMatch(actualString))