@recursyve/nice-ui-kit.v2 14.0.0-beta.101 → 14.0.0-beta.102
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.
|
@@ -1136,10 +1136,12 @@ class CaseUtils {
|
|
|
1136
1136
|
}
|
|
1137
1137
|
// my_value -> myValue
|
|
1138
1138
|
static toCamelCaseFromSnakeCase(stringToConvert) {
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1139
|
+
return stringToConvert.replace(/(^[a-z]|_[a-z])/g, (letter) => {
|
|
1140
|
+
if (letter.length === 1) {
|
|
1141
|
+
return letter;
|
|
1142
|
+
}
|
|
1143
|
+
return letter[1].toUpperCase();
|
|
1144
|
+
});
|
|
1143
1145
|
}
|
|
1144
1146
|
// MyValue -> my-value
|
|
1145
1147
|
static toKebabCasePascalCase(str) {
|