@pandacss/shared 0.13.0 → 0.14.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
@@ -377,9 +377,9 @@ function toRem(value = "") {
377
377
  }
378
378
 
379
379
  // src/css-var.ts
380
- var escRegex = /[.*+?^${}()|[\]\\/]/g;
380
+ var escRegex = /[^a-zA-Z0-9_\u0081-\uffff-]/g;
381
381
  function esc(string) {
382
- return string.replace(escRegex, "\\$&");
382
+ return `${string}`.replace(escRegex, (s) => `\\${s}`);
383
383
  }
384
384
  var dashCaseRegex = /[A-Z]/g;
385
385
  function dashCase2(string) {
package/dist/index.mjs CHANGED
@@ -310,9 +310,9 @@ function toRem(value = "") {
310
310
  }
311
311
 
312
312
  // src/css-var.ts
313
- var escRegex = /[.*+?^${}()|[\]\\/]/g;
313
+ var escRegex = /[^a-zA-Z0-9_\u0081-\uffff-]/g;
314
314
  function esc(string) {
315
- return string.replace(escRegex, "\\$&");
315
+ return `${string}`.replace(escRegex, (s) => `\\${s}`);
316
316
  }
317
317
  var dashCaseRegex = /[A-Z]/g;
318
318
  function dashCase2(string) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/shared",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "Shared utilities for css panda",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",