better-chatbot / src /components /tool-invocation /shared.tool-invocation.ts
Bot
Initial commit for HF Spaces
05c5ed5
Raw
History Blame Contribute Delete
158 Bytes
export const sanitizeCssVariableName = (label: string) => {
return label
.replaceAll(" ", "")
.toLowerCase()
.replace(/[^a-z0-9\-_]/g, "_");
};