From 4bd93741534e23e41de931671b8edc7731c7022f Mon Sep 17 00:00:00 2001 From: eatsfoobars Date: Sun, 1 Mar 2020 16:11:06 +0000 Subject: [PATCH] Make quotes in versionName optional Fuck YAML --- patchport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patchport.py b/patchport.py index 8b6d23c..2459d73 100644 --- a/patchport.py +++ b/patchport.py @@ -92,7 +92,7 @@ re_versioncode_xml = re.compile(r'(platformBuildVersionCode="[0-9]+")') re_versionname_xml = re.compile(r'(platformBuildVersionName="[0-9a-z.]+")') re_versioncode_yml = re.compile(r'versionCode: \'([0-9]+)\'') -re_versionname_yml = re.compile(r'versionName: \'(.+)\'$') +re_versionname_yml = re.compile(r'versionName: \'?(.+?)\'?$') re_releasedate = re.compile(r'released on ([0-9]{4}-[0-9]{2}-[0-9]{2})') re_crashlytics = re.compile(r'com\.crashlytics\.android\.build_id">([a-z0-9]'