Fix eslint

This commit is contained in:
Mimi 2020-05-08 15:05:46 +08:00
parent 03e50d01ac
commit 488da012e2
2 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,7 @@
{ {
"extends": "theme-next", "extends": "theme-next",
"parserOptions": {
"ecmaVersion": 2018
},
"root": true "root": true
} }

View File

@ -5,7 +5,7 @@ function parse(file) {
let rule = ''; let rule = '';
let background = ''; let background = '';
let foreground = ''; let foreground = '';
css.replace(/\.hljs([^\S]+|,[^\{]+)\{(.*?)\}/sg, (match, $1, content) => { css.replace(/\.hljs(\s+|,[^{]+)\{(.*?)\}/sg, (match, $1, content) => {
rule += content; rule += content;
return match; return match;
}); });