Skip to content

Commit 42b8ed4

Browse files
authored
Fix parsing error (#75)
1 parent 6c71117 commit 42b8ed4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

internal/components/verifier/funcs.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ func regexpMatch(s, pattern string) string {
6565
return fmt.Sprintf(`<%q>`, err)
6666
}
6767
if !matched {
68-
return fmt.Sprintf("<%q does not match the pattern %q>", s, pattern)
68+
// Note: Changing %s to %q for s would throw yaml parsing error
69+
return fmt.Sprintf("<%s does not match the pattern %q>", s, pattern)
6970
}
7071
return s
7172
}

0 commit comments

Comments
 (0)