From fec05e2c3a4c644e51b6ac49142d4ccd3665b339 Mon Sep 17 00:00:00 2001 From: inotia00 Date: Sat, 1 Oct 2022 20:01:24 +0900 Subject: [PATCH] fix: youtube-music parsing error --- wsEvents/getAppVersion.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wsEvents/getAppVersion.js b/wsEvents/getAppVersion.js index 2db49dcf..d36f0907 100644 --- a/wsEvents/getAppVersion.js +++ b/wsEvents/getAppVersion.js @@ -16,7 +16,8 @@ const APKMIRROR_UPLOAD_BASE = 'https://www.apkmirror.com/uploads/?appcategory='; const sanitizeVersion = (ver) => { return ver .replace(/\.0(\d)/gi, '.$1') // because apparently x.0y.z (ex. 5.09.51) isn't a valid version - .replace(/^(\d+)\.(\d+)$/gi, '$1.$2.0'); // nor are versions without a patch (ex. 2.3) + .replace(/^(\d+)\.(\d+)$/gi, '$1.$2.0') // nor are versions without a patch (ex. 2.3) + .replace('-CAR_RELEASE',''); // because CAR_RELEASE (ex. 5.26.20-CAR_RELEASE) isn't a valid version }; /**