@sheinx/theme 3.1.27 → 3.1.29

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.
@@ -16,7 +16,7 @@ function replaceNonAlphanumeric(str) {
16
16
  return result;
17
17
  }
18
18
  function camelCaseToDash(str) {
19
- return str.replace(/(?<=.)([A-Z])/g, '-$1').toLowerCase();
19
+ return str.replace(/([A-Z])/g, '-$1').toLowerCase().replace(/^-/, '');
20
20
  }
21
21
  var cssvar = exports.cssvar = function cssvar(str, value, key, _size) {
22
22
  var _getConfig = (0, _config.getConfig)(),
@@ -8,7 +8,7 @@ export function replaceNonAlphanumeric(str) {
8
8
  return result;
9
9
  }
10
10
  export function camelCaseToDash(str) {
11
- return str.replace(/(?<=.)([A-Z])/g, '-$1').toLowerCase();
11
+ return str.replace(/([A-Z])/g, '-$1').toLowerCase().replace(/^-/, '');
12
12
  }
13
13
  export var cssvar = function cssvar(str, value, key, _size) {
14
14
  var _getConfig = getConfig(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/theme",
3
- "version": "3.1.27",
3
+ "version": "3.1.29",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "",