MCPcopy Create free account
hub / github.com/bytebase/bytebase / IsGhostEnabled

Function IsGhostEnabled

backend/component/ghost/directive.go:30–32  ·  view source on GitHub ↗

IsGhostEnabled checks if ghost is enabled by checking for directive presence.

(content string)

Source from the content-addressed store, hash-verified

28
29// IsGhostEnabled checks if ghost is enabled by checking for directive presence.
30func IsGhostEnabled(content string) bool {
31 return ghostDirectiveRegex.MatchString(content)
32}
33
34// RemoveGhostDirective removes the ghost directive from sheet content.
35func RemoveGhostDirective(content string) string {

Callers 5

RunOnceMethod · 0.92
runVersionedReleaseMethod · 0.92
DeriveCheckTargetsFunction · 0.92
TestIsGhostEnabledFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsGhostEnabledFunction · 0.68