@storybook/csf 0.0.2--canary.7705a54.0 → 0.0.2--canary.62.d7abc02.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -97,7 +97,7 @@ var require_tiny_isequal = __commonJS({
|
|
97
97
|
|
98
98
|
// src/toStartCaseStr.ts
|
99
99
|
function toStartCaseStr(str) {
|
100
|
-
return str.replace(/_/g, " ").replace(/([a-z])([A-Z])/g, (str2, $1, $2) => `${$1} ${$2}`).replace(/(\s|^)(\w)/g, (str2, $1, $2) => $1 + $2.toUpperCase());
|
100
|
+
return str.replace(/_/g, " ").replace(/([a-z])([A-Z])/g, (str2, $1, $2) => `${$1} ${$2}`).replace(/([a-z])([0-9])/gi, (str2, $1, $2) => `${$1} ${$2}`).replace(/(\s|^)(\w)/g, (str2, $1, $2) => $1 + $2.toUpperCase());
|
101
101
|
}
|
102
102
|
|
103
103
|
// src/includeConditionalArg.ts
|
package/dist/index.mjs
CHANGED
@@ -95,7 +95,7 @@ var require_tiny_isequal = __commonJS({
|
|
95
95
|
|
96
96
|
// src/toStartCaseStr.ts
|
97
97
|
function toStartCaseStr(str) {
|
98
|
-
return str.replace(/_/g, " ").replace(/([a-z])([A-Z])/g, (str2, $1, $2) => `${$1} ${$2}`).replace(/(\s|^)(\w)/g, (str2, $1, $2) => $1 + $2.toUpperCase());
|
98
|
+
return str.replace(/_/g, " ").replace(/([a-z])([A-Z])/g, (str2, $1, $2) => `${$1} ${$2}`).replace(/([a-z])([0-9])/gi, (str2, $1, $2) => `${$1} ${$2}`).replace(/(\s|^)(\w)/g, (str2, $1, $2) => $1 + $2.toUpperCase());
|
99
99
|
}
|
100
100
|
|
101
101
|
// src/includeConditionalArg.ts
|