@storybook/csf 0.0.2--canary.7705a54.0 → 0.0.2--canary.62.d7abc02.0

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.
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/csf",
3
- "version": "0.0.2--canary.7705a54.0",
3
+ "version": "0.0.2--canary.62.d7abc02.0",
4
4
  "description": "Component Story Format (CSF) utilities",
5
5
  "keywords": [
6
6
  "storybook",