Skip to content

Commit

Permalink
Fix regex to parse apktool.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kefir500 committed May 17, 2024
1 parent 4f2fa9e commit 148671b
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: )\\d+(?=$)");
regexTargetSdk.setPattern("(?<=^ targetSdkVersion: )\\d+(?=$)");
regexVersionCode.setPattern("(?<=^ versionCode: )\\d+(?=$)");
regexVersionName.setPattern("(?<=^ versionName: ).+(?=$)");

QFile ymlFile(ymlPath);
Expand Down

0 comments on commit 148671b

Please sign in to comment.