MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / normalizeCategoryKey

Function normalizeCategoryKey

src/config/commandCategories.js:29–34  ·  view source on GitHub ↗
(category)

Source from the content-addressed store, hash-verified

27export const PROTECTED_COMMANDS = new Set(['commands', 'configwizard']);
28
29export function normalizeCategoryKey(category) {
30 return String(category || '')
31 .trim()
32 .toLowerCase()
33 .replace(/\s+/g, '_');
34}
35
36export function formatCategoryName(rawCategory) {
37 return String(rawCategory || '')

Callers 7

buildCommandRegistryFunction · 0.90
getCategoryRegistryFunction · 0.90
isCommandEnabledInConfigFunction · 0.90
disableCategoryFunction · 0.90
enableCategoryFunction · 0.90
resetCategoryCommandsFunction · 0.90
resolveCategoryChoiceFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected