From d2e2252b2c55d4cd3ed4a8ebc4f7be87b375413b Mon Sep 17 00:00:00 2001 From: tangyinsheng Date: Wed, 21 Sep 2022 11:40:31 +0800 Subject: [PATCH] [tinker] Allow version code to have five segment at most. --- gradle/WeChatPublish.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/WeChatPublish.gradle b/gradle/WeChatPublish.gradle index 7134412e0..0db6dc3e5 100644 --- a/gradle/WeChatPublish.gradle +++ b/gradle/WeChatPublish.gradle @@ -166,7 +166,7 @@ class WeChatPublishExtension { } private void checkVersion() { - if (!(fullVersion ==~ /\d+\.\d+(?:\.\d+)?(?:\.\d+)?(?:-[\w-]+)?/)) { + if (!(fullVersion ==~ /\d+\.\d+(?:\.\d+)?(?:\.\d+)?(?:\.\d+)?(?:-[\w-]+)?/)) { def message = "Invalid version: ${fullVersion}" if (!isSnapshot) throw new GradleException(message)