MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / isValidPRDName

Function isValidPRDName

internal/tui/first_time_setup.go:217–220  ·  view source on GitHub ↗

isValidPRDName checks if a name is valid for a PRD.

(name string)

Source from the content-addressed store, hash-verified

215
216// isValidPRDName checks if a name is valid for a PRD.
217func isValidPRDName(name string) bool {
218 validName := regexp.MustCompile(`^[a-zA-Z0-9_-]+$`)
219 return validName.MatchString(name)
220}
221
222func (f FirstTimeSetup) handlePostCompletionKeys(msg tea.KeyMsg) (tea.Model, tea.Cmd) {
223 switch msg.String() {

Callers 1

handlePRDNameKeysMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected