mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
This should not be using the whole file path. How did this even work?
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user