From 6679f01c131e49747b4c9a567f3cb551a1e029ea Mon Sep 17 00:00:00 2001 From: Pk11 Date: Fri, 30 Oct 2020 00:12:50 -0500 Subject: [PATCH] Fix extraction regex Accidentally removed this in the commit... --- source/utils/extract.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/utils/extract.cpp b/source/utils/extract.cpp index 88a3597..2a0390d 100644 --- a/source/utils/extract.cpp +++ b/source/utils/extract.cpp @@ -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++;