From 6ab4703703d844c854a197ed5478a454b859b278 Mon Sep 17 00:00:00 2001 From: Pavel Azanov Date: Fri, 9 Sep 2022 16:09:41 +0200 Subject: [PATCH] refactor: reduce bundle size --- src/core/astish.js | 2 +- src/core/hash.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/astish.js b/src/core/astish.js index 6a7eb1df..a09dfbb3 100644 --- a/src/core/astish.js +++ b/src/core/astish.js @@ -1,4 +1,4 @@ -let newRule = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g; +let newRule = /(?:([\x80-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g; let ruleClean = /\/\*[^]*?\*\/| +/g; let ruleNewline = /\n+/g; let empty = ' '; diff --git a/src/core/hash.js b/src/core/hash.js index c660440a..e1bd06d4 100644 --- a/src/core/hash.js +++ b/src/core/hash.js @@ -56,7 +56,7 @@ export let hash = (compiled, sheet, global, append, keyframes) => { // If the global flag is set, save the current stringified and compiled CSS to `cache.g` // to allow replacing styles in