From 9223259935a90150b6de989c1443b1063f3d2cac Mon Sep 17 00:00:00 2001 From: DmitriyLewen Date: Mon, 11 Apr 2022 16:36:51 +0600 Subject: [PATCH 1/4] test commit for check semantic-pull-requests works --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 73084fa..27f4536 100644 --- a/main.go +++ b/main.go @@ -19,6 +19,7 @@ var UnmarshalBuildGradle = func(content []byte) error { return errors.New("err") } vers := res[1] + log.Println(vers) return nil From 4cc41fcb45225beb3d4ef104e33f9cacc8a88201 Mon Sep 17 00:00:00 2001 From: DmitriyLewen Date: Mon, 11 Apr 2022 16:37:52 +0600 Subject: [PATCH 2/4] test commit for check semantic-pull-requests works --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 27f4536..f650a8e 100644 --- a/main.go +++ b/main.go @@ -13,7 +13,7 @@ func main() { } var UnmarshalBuildGradle = func(content []byte) error { - regex, _ := regexp.Compile(`versionName "([^\t\n\f\r]+)"`) + regex, _ := regexp.Compile(`versionName "([^\t\n\f\r]*)"`) res := regex.FindStringSubmatch(string(content)) if len(res) == 0 { return errors.New("err") From 8afa1fb9a207d3b0efe4a31df6e307b83108c4fe Mon Sep 17 00:00:00 2001 From: DmitriyLewen Date: Mon, 11 Apr 2022 16:39:11 +0600 Subject: [PATCH 3/4] test commit for check semantic-pull-requests works --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index f650a8e..c79ce81 100644 --- a/main.go +++ b/main.go @@ -16,7 +16,7 @@ var UnmarshalBuildGradle = func(content []byte) error { regex, _ := regexp.Compile(`versionName "([^\t\n\f\r]*)"`) res := regex.FindStringSubmatch(string(content)) if len(res) == 0 { - return errors.New("err") + return errors.New("err ") } vers := res[1] From d92a8c82dd62664fd4006fc870be4ec526ef9922 Mon Sep 17 00:00:00 2001 From: DmitriyLewen Date: Mon, 11 Apr 2022 16:41:15 +0600 Subject: [PATCH 4/4] test commit for check semantic-pull-requests works --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index c79ce81..f650a8e 100644 --- a/main.go +++ b/main.go @@ -16,7 +16,7 @@ var UnmarshalBuildGradle = func(content []byte) error { regex, _ := regexp.Compile(`versionName "([^\t\n\f\r]*)"`) res := regex.FindStringSubmatch(string(content)) if len(res) == 0 { - return errors.New("err ") + return errors.New("err") } vers := res[1]