Skip to content

Commit

Permalink
no comment
Browse files Browse the repository at this point in the history
  • Loading branch information
CCAyl committed Jul 7, 2022
1 parent aa903b3 commit b5511b6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ StyleDictionary.registerTransform({
transformer: function(token) {
const slicePrefix = token.path.slice(1);
const filterDesktop = slicePrefix.filter(prefix => prefix !== "desktop");

return ChangeCase.camelCase(filterDesktop.join(" "));
return ChangeCase.camelCase(filterDesktop.join(" ")).replace("_","");
}
});

Expand Down

0 comments on commit b5511b6

Please sign in to comment.