diff --git a/StabilityMatrix.Core/Python/PyVenvRunner.cs b/StabilityMatrix.Core/Python/PyVenvRunner.cs index 41f389c0..f35b66ef 100644 --- a/StabilityMatrix.Core/Python/PyVenvRunner.cs +++ b/StabilityMatrix.Core/Python/PyVenvRunner.cs @@ -259,7 +259,7 @@ public class PyVenvRunner : IDisposable, IAsyncDisposable if (excludes is not null) { - var excludeRegex = new Regex(excludes); + var excludeRegex = new Regex($"^{excludes}$"); requirements = requirements.Where(s => !excludeRegex.IsMatch(s)); }