Skip to content

Commit

Permalink
Fix regex to parse apktool.yml (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
kefir500 committed Aug 8, 2024
1 parent a902285 commit ded6d47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/apk/manifest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ Manifest::Manifest(const QString &xmlPath, const QString &ymlPath)
regexTargetSdk.setPatternOptions(QRegularExpression::MultilineOption);
regexVersionCode.setPatternOptions(QRegularExpression::MultilineOption);
regexVersionName.setPatternOptions(QRegularExpression::MultilineOption);
regexMinSdk.setPattern("(?<=^ minSdkVersion: )\\d+(?=$)");
regexTargetSdk.setPattern("(?<=^ targetSdkVersion: )\\d+(?=$)");
regexVersionCode.setPattern("(?<=^ versionCode: )\\d+(?=$)");
regexMinSdk.setPattern("(?<=^ minSdkVersion: ).+(?=$)");
regexTargetSdk.setPattern("(?<=^ targetSdkVersion: ).+(?=$)");
regexVersionCode.setPattern("(?<=^ versionCode: ).+(?=$)");
regexVersionName.setPattern("(?<=^ versionName: ).+(?=$)");

QFile ymlFile(ymlPath);
Expand Down

0 comments on commit ded6d47

Please sign in to comment.