This should not be using the whole file path. How did this even work?

This commit is contained in:
Caelan Sayler
2022-04-07 22:04:56 +01:00
parent fc0772816a
commit 8a31612852

View File

@@ -387,7 +387,7 @@ namespace Squirrel
bool delta = Path.GetFileNameWithoutExtension(fileName).EndsWith("-delta", StringComparison.OrdinalIgnoreCase);
var nameAndVer = _suffixRegex.Replace(fileName, "");
var nameAndVer = _suffixRegex.Replace(Path.GetFileName(fileName), "");
var match = _versionStartRegex.Match(nameAndVer);
if (!match.Success)