You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by yi...@apache.org on 2022/04/24 07:30:10 UTC

[skywalking-infra-e2e] branch main updated: Fix parsing error (#75)

This is an automated email from the ASF dual-hosted git repository.

yihaochen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-infra-e2e.git


The following commit(s) were added to refs/heads/main by this push:
     new 42b8ed4  Fix parsing error (#75)
42b8ed4 is described below

commit 42b8ed4dd4b7ddfe00dd02df0b3b778469a2695f
Author: Superskyyy <Su...@outlook.com>
AuthorDate: Sun Apr 24 03:30:06 2022 -0400

    Fix parsing error (#75)
---
 internal/components/verifier/funcs.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/internal/components/verifier/funcs.go b/internal/components/verifier/funcs.go
index 86a780b..9a2014d 100644
--- a/internal/components/verifier/funcs.go
+++ b/internal/components/verifier/funcs.go
@@ -65,7 +65,8 @@ func regexpMatch(s, pattern string) string {
 		return fmt.Sprintf(`<%q>`, err)
 	}
 	if !matched {
-		return fmt.Sprintf("<%q does not match the pattern %q>", s, pattern)
+		// Note: Changing %s to %q for s would throw yaml parsing error
+		return fmt.Sprintf("<%s does not match the pattern %q>", s, pattern)
 	}
 	return s
 }