@mtgame/core 2.0.14 → 2.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -103,7 +103,7 @@ const dateField = {
103
103
  : null,
104
104
  };
105
105
  function toCamelCase(key) {
106
- return key.replace(/_([a-z])/g, g => g[1].toUpperCase());
106
+ return key.replace(/([a-z])_([a-z])/g, g => g[0] + g[1].toUpperCase());
107
107
  }
108
108
  function toUnderscore(key) {
109
109
  return key.replace(/.([A-Z])/g, g => `${g[0]}_${g[1]}`).toLowerCase();