trimming the pattern in the delete source directory flow element

This commit is contained in:
John Andrews
2024-02-24 14:02:44 +13:00
parent 4a08bc9d4a
commit bc530667eb

View File

@@ -161,7 +161,7 @@ public class DeleteSourceDirectory : Node
return true;
try
{
if (System.Text.RegularExpressions.Regex.IsMatch(x, pattern,
if (System.Text.RegularExpressions.Regex.IsMatch(x, pattern.Trim(),
System.Text.RegularExpressions.RegexOptions.IgnoreCase))
return true;
}