MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / CompileColorPatterns

Function CompileColorPatterns

internal/colorpatterns/colorpatterns.go:315–331  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

313}
314
315func CompileColorPatterns() {
316
317 if colorsCompiled {
318 return
319 }
320
321 for name, numbers := range numericPatterns {
322 cPatterns := []string{}
323
324 for _, num := range numbers {
325 cPatterns = append(cPatterns, fmt.Sprintf(`{%d}`, num))
326 }
327 ShortTagPatterns[name] = cPatterns
328 }
329
330 colorsCompiled = true
331}
332
333func IsValidPattern(pName string) bool {
334 if _, ok := numericPatterns[pName]; ok {

Callers 3

GetColorPatternNamesFunction · 0.85
LoadColorPatternsFunction · 0.85
SaveColorPatternFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected