22 references to IsMatch
Aspire.Cli.EndToEnd.Tests (2)
tests\Shared\CliInstallStrategy.cs (1)
138if (!Regex.IsMatch(sha, @"^[0-9a-fA-F]{7,40}$") && sha != "main")
TypeScriptCodegenValidationTests.cs (1)
182if (Regex.IsMatch(initialAspireTs, @"(?m)^\s*(?![*/])\S.*\baddRedis\s*\("))
Aspire.Deployment.EndToEnd.Tests (1)
tests\Shared\CliInstallStrategy.cs (1)
138if (!Regex.IsMatch(sha, @"^[0-9a-fA-F]{7,40}$") && sha != "main")
Aspire.Hosting (1)
Dcp\Model\ModelCommon.cs (1)
246bool isValid = Regex.IsMatch(candidate, @"^[[a-zA-Z_~][a-zA-Z0-9\-._~]*$");
Aspire.Hosting.CodeGeneration.Java.Tests (1)
AtsJavaCodeGeneratorTests.cs (1)
435if (!Regex.IsMatch(body, $@"\b{Regex.Escape(simpleName)}\b"))
Aspire.Hosting.Tests (5)
DistributedApplicationTests.cs (4)
1857var redisContainer = Assert.Single(list, c => Regex.IsMatch(c.Name(), $"{testName}-redis-{ReplicaIdRegex}")); 1876var otherRedisContainer = Assert.Single(list, c => Regex.IsMatch(c.Name(), $"{testName}-redisNoPort-{ReplicaIdRegex}")); 1935var redisContainer = Assert.Single(list, c => Regex.IsMatch(c.Name(), $"{testName}-redis-{ReplicaIdRegex}")); 1955var otherRedisContainer = Assert.Single(list, c => Regex.IsMatch(c.Name(), $"{testName}-redisNoPort-{ReplicaIdRegex}"));
WaitForTests.cs (1)
580Assert.Contains(logs, log => Regex.IsMatch(log.Message, @"(?i).*resource.*nginx.*failed.*"));
Aspire.Hosting.TestUtilities (1)
Helpers\KubernetesHelper.cs (1)
34if (Regex.IsMatch(name, resourceNamePattern) && ready(r))
dotnet-svcutil-lib (2)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (2)
2314if (Regex.IsMatch(internalsVisibleAttributeAssemblyName, Globals.SimpleSRSInternalsVisiblePattern) || 2315Regex.IsMatch(internalsVisibleAttributeAssemblyName, Globals.FullSRSInternalsVisiblePattern))
GetDocument.Insider (1)
Commands\GetDocumentCommandWorker.cs (1)
290if (!string.IsNullOrWhiteSpace(_context.FileName) && !Regex.IsMatch(_context.FileName, "^([A-Za-z0-9-_]+)$"))
Microsoft.Build.Tasks.Core (1)
Exec.cs (1)
426match = Regex.IsMatch(singleLine, regularExpression);
Microsoft.DotNet.Build.Tasks.Workloads (1)
WorkloadPackageBase.cs (1)
265if (exclusionPatterns.Any(pattern => Regex.IsMatch(file, pattern)))
Microsoft.Extensions.VectorData.ConformanceTests (1)
TestSuiteImplementationTests.cs (1)
40.Where(t => Regex.IsMatch(t.Name, """Tests(`\d+)?$""") && t.IsAbstract && !t.IsSealed && !t.IsInterface);
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (1)
Macros\RegexMatchMacro.cs (1)
30bool result = Regex.IsMatch(value, config.Pattern);
NuGet.Common (1)
PathUtil\PathValidator.cs (1)
44if (!Regex.IsMatch(path.Trim(), @"^[A-Za-z]:\\"))
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
118if (!System.Text.RegularExpressions.Regex.IsMatch(versionInput.Value, @"^\d+\.\d+\.\d+$"))
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\Regex.Match.cs (2)
25/// The <see cref="IsMatch(string, string)"/> method is typically used to validate a string or to ensure 31/// The static <see cref="IsMatch(string, string)"/> method is equivalent to constructing a