mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
Fix eslint
This commit is contained in:
parent
03e50d01ac
commit
488da012e2
@ -1,4 +1,7 @@
|
||||
{
|
||||
"extends": "theme-next",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2018
|
||||
},
|
||||
"root": true
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@ function parse(file) {
|
||||
let rule = '';
|
||||
let background = '';
|
||||
let foreground = '';
|
||||
css.replace(/\.hljs([^\S]+|,[^\{]+)\{(.*?)\}/sg, (match, $1, content) => {
|
||||
css.replace(/\.hljs(\s+|,[^{]+)\{(.*?)\}/sg, (match, $1, content) => {
|
||||
rule += content;
|
||||
return match;
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user