diff --git a/presets/objects.js b/presets/objects.js index cd47a94e..81248d80 100644 --- a/presets/objects.js +++ b/presets/objects.js @@ -75,7 +75,7 @@ function makeHeight(info, category, prefix = "", type = "objects") { views[object[0]] = { height: math.unit(object[1], object[2]), image: { source: src }, - name: object[0].replace(/-/g, " ").replace(/\b(? x.toUpperCase()), + name: object[0].replace(/-/g, " ").replace(/\b\w/g, x => x.toUpperCase()).replace(/'[A-Z]/g, x => x.toLowerCase()), rename: true } });