fix: resolve remaining hyphenated ID issues in memory store and doctor

This commit is contained in:
Steve Yegge
2025-11-20 19:01:10 -05:00
parent 408244ed73
commit 6a25f5eaa6
4 changed files with 435 additions and 323 deletions

View File

@@ -1124,10 +1124,12 @@ func countJSONLIssues(jsonlPath string) (int, map[string]int, error) {
if id, ok := issue["id"].(string); ok {
count++
// Extract prefix (everything before the first dash)
parts := strings.SplitN(id, "-", 2)
if len(parts) > 0 {
prefixes[parts[0]]++
// Extract prefix (everything before the last dash)
lastDash := strings.LastIndex(id, "-")
if lastDash != -1 {
prefixes[id[:lastDash]]++
} else {
prefixes[id]++
}
}
}