From bc97aa308b643f7e45ce29f09ff4fba17c7ed94a Mon Sep 17 00:00:00 2001 From: acd02 Date: Fri, 2 Jun 2023 12:04:16 +0200 Subject: [PATCH] fix: update TCV config file to include uppercased string edge cases Update TCV config file to include uppercased string edge cases #860 --- tailwind.config.viewer.cjs | 1 + 1 file changed, 1 insertion(+) diff --git a/tailwind.config.viewer.cjs b/tailwind.config.viewer.cjs index ada0384b5a..276cedd916 100644 --- a/tailwind.config.viewer.cjs +++ b/tailwind.config.viewer.cjs @@ -9,6 +9,7 @@ const utils = { return typeof value === 'string' || typeof value === 'number' }, toKebabCase(value) { + if (value.toUpperCase() === value) return value.toLowerCase() return value.replace(/[A-Z0-9]/g, e => `-${e.toLocaleLowerCase()}`) }, doubleHyphensRegex: /(?