@ape-egg/codie 0.1.1 → 0.1.2
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/highlight.js +1 -1
- package/package.json +1 -1
- package/structure.css +1 -1
package/highlight.js
CHANGED
|
@@ -196,7 +196,7 @@ export const highlightJSRaw = (code) => {
|
|
|
196
196
|
// CSS highlighter
|
|
197
197
|
export const highlightCSS = (code, options = {}) => {
|
|
198
198
|
let result = '';
|
|
199
|
-
const ruleRegex = /(\/\*[\s\S]*?\*\/)|([^{}]+)(\{)([^}]*)(\})/g;
|
|
199
|
+
const ruleRegex = /(\/\*[\s\S]*?\*\/)|((?:[^{}\/]|\/(?!\*))+)(\{)([^}]*)(\})/g;
|
|
200
200
|
let match,
|
|
201
201
|
lastIndex = 0;
|
|
202
202
|
|
package/package.json
CHANGED
package/structure.css
CHANGED