MCPcopy Create free account
hub / github.com/devspace-sh/devspace / isRootChild

Method isRootChild

pkg/devspace/config/loader/patch/path.go:13–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11var rootChildPath = regexp.MustCompile(`^(\$|\.)([^\.]+)$`)
12
13func (p *OpPath) isRootChild() bool {
14 path := string(*p)
15 return rootChildPath.MatchString(path)
16}
17
18var endsWithBracketExp = regexp.MustCompile(`\[([^\]]+)\]$`)
19

Callers 1

TestIsRootChildFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestIsRootChildFunction · 0.64