Skip to content

Commit

Permalink
[tinker] Allow version code to have five segment at most.
Browse files Browse the repository at this point in the history
  • Loading branch information
tangyinsheng committed Sep 21, 2022
1 parent 9d14908 commit d2e2252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/WeChatPublish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d2e2252

Please sign in to comment.