Skip to content

Commit d2e2252

Browse files
author
tangyinsheng
committed
[tinker] Allow version code to have five segment at most.
1 parent 9d14908 commit d2e2252

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gradle/WeChatPublish.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class WeChatPublishExtension {
166166
}
167167

168168
private void checkVersion() {
169-
if (!(fullVersion ==~ /\d+\.\d+(?:\.\d+)?(?:\.\d+)?(?:-[\w-]+)?/)) {
169+
if (!(fullVersion ==~ /\d+\.\d+(?:\.\d+)?(?:\.\d+)?(?:\.\d+)?(?:-[\w-]+)?/)) {
170170
def message = "Invalid version: ${fullVersion}"
171171
if (!isSnapshot)
172172
throw new GradleException(message)

0 commit comments

Comments
 (0)