Skip to content

Commit

Permalink
fix: update TCV config file to include uppercased string edge cases
Browse files Browse the repository at this point in the history
Update TCV config file to include uppercased string edge cases

#860
  • Loading branch information
acd02 committed Jun 2, 2023
1 parent 6c0c93a commit bc97aa3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tailwind.config.viewer.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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: /(?<!var\()--+/g,
Expand Down

0 comments on commit bc97aa3

Please sign in to comment.