MCPcopy Create free account
hub / github.com/aws-cloudformation/rain / CheckMultilineBegin

Function CheckMultilineBegin

cft/format/format.go:25–30  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

23}
24
25func CheckMultilineBegin(s string) bool {
26 // Match block header
27 // https://yaml.org/spec/1.2.2/#8112-block-chomping-indicator
28 r, _ := regexp.Compile("[|>](([0-9]*[+-])|([+-][0-9]*))?$")
29 return r.MatchString(s)
30}
31
32// String returns a string representation of the supplied cft.Template
33func String(t *cft.Template, opt Options) string {

Callers 2

StringFunction · 0.85

Calls

no outgoing calls

Tested by 1