494057f0440a2096e0271d61ce94b618b7798c6c

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

format: align persona validation map

Diff

 1diff --git a/internal/persona/persona.go b/internal/persona/persona.go
 2index 221c2cc6d26b6bb5da6eb096a466c8cc99e68459..61f2e423d072f526d176c708f7aba8fed0826489 100644
 3--- a/internal/persona/persona.go
 4+++ b/internal/persona/persona.go
 5@@ -81,9 +81,9 @@ func Validate(p Persona) error {
 6 		return fmt.Errorf("persona: ambiguity.note must not be empty")
 7 	}
 8 	for field, value := range map[string]string{
 9-		"personality": p.Personality,
10-		"speech_style": p.SpeechStyle,
11-		"situation":   p.Situation,
12+		"personality":    p.Personality,
13+		"speech_style":   p.SpeechStyle,
14+		"situation":      p.Situation,
15 		"ambiguity.note": p.Ambiguity.Note,
16 	} {
17 		if gameContextWord.MatchString(value) {