Skip to content

cli7zplugin: improve compatibility with original 7-Zip

Hanabishi Recca requested to merge hanabishi/ark:7-zip-orig-fix into master

Original 7-Zip version string does not always contain the extra postfix.
Possible variants are defined in https://github.com/ip7z/7zip/blob/5b39dc76f1bc82f941d5c800ab9f34407a06b53a/CPP/7zip/UI/Console/Main.cpp#L111-L123

E.g. original non-bundled build looks like

7-Zip 23.01 (x64) : Copyright (c) 1999-2023 Igor Pavlov : 2023-06-20

This MR improves compatibility by accounting such possibility.

Edited by Hanabishi Recca

Merge request reports