Fix extraction regex

Accidentally removed this in the commit...
This commit is contained in:
Pk11
2020-10-30 00:12:50 -05:00
parent c20261794e
commit 6679f01c13
+1 -1
View File
@@ -50,7 +50,7 @@ Result getExtractedSize(const std::string &archivePath, const std::string &wante
int size = archive_entry_size(entry);
if (size > 0) { /* Ignore folders. */
std::smatch match;
std::string entryName();
std::string entryName(archive_entry_pathname(entry));
if (std::regex_search(entryName, match, std::regex(wantedFile))) {
extractSize += size;
extractFilesCount++;