Skip to content

Commit

Permalink
dont lowercase fn name if its already lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart Veneman committed Feb 11, 2024
1 parent eba1867 commit 22e16d7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,14 @@ function print_value(node, css) {
* @param {string} css
*/
function print_function(node, css) {
let buffer = node.name.toLowerCase() + '('
let name = node.name
let buffer = name

if (/[A-Z]/.test(name)) {
buffer = name.toLowerCase()
}

buffer += '('
buffer += print_list(node.children, css)
buffer += ')'
return buffer
Expand Down

0 comments on commit 22e16d7

Please sign in to comment.