From 0e538bc26f27ff0c61d973e1a43cc6e327b14d7d Mon Sep 17 00:00:00 2001 From: Aaron Chen <462826@qq.com> Date: Thu, 8 Aug 2019 12:38:11 +0800 Subject: [PATCH] package resource --- src/script/result.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/result.go b/src/script/result.go index 4ced49c8..92d6e605 100644 --- a/src/script/result.go +++ b/src/script/result.go @@ -62,7 +62,7 @@ func GetCheckpointsResult(assert string, date string, caseLine string) string { content := utils.ReadFile(resultPath) - myExp := regexp.MustCompile(`(?m:^\s" + caseLine + "\n([\s\S]*?)((^\s(PASS|FAIL))|\z))`) + myExp := regexp.MustCompile("(?m:^\\s" + caseLine + "\n([\\s\\S]*?)((^\\s(PASS|FAIL))|\\z))") arr := myExp.FindStringSubmatch(content) str := "" if len(arr) > 1 { -- GitLab