Add whitespace stripping string to the regex match for [NoDelete] to idiot proof (#2364)

* add whitespace stripping string to the regex match to idiot proof

* updated changelog
This commit is contained in:
JanuarySnow 2023-07-16 22:21:47 +01:00 committed by GitHub
parent b0a2058c19
commit 2e5d91f46d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -6,6 +6,8 @@
* Added a check if Downloadpath is alongside Wabbajack.exe location, to match the install path check that already exists
* Added check for identical download and install paths
* Fixed No Delete and NoDelete being handled by stripping whitespace before the regex, to idiotproof things a bit
#### Version - 3.1.0.0 - 5/7/2023
* Fixed Readme opening twice
* Updated Text in the UI to better describe current app behavior

View File

@ -534,8 +534,8 @@ public abstract class AInstaller<T>
return f;
if (f.InFolder(profileFolder) && f.Parent.FileName == savePath) return f;
if (NoDeleteRegex.IsMatch(f.ToString()))
var fNoSpaces = new string(f.ToString().Where(c => !Char.IsWhiteSpace(c)).ToArray());
if (NoDeleteRegex.IsMatch(fNoSpaces))
return f;
if (bsaPathsToNotBuild.Contains(f))