update csslint
This commit is contained in:
parent
91b42b43d3
commit
78e6200e51
2 changed files with 782 additions and 96 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -105,9 +105,8 @@ void function(){
|
||||||
if (!data)
|
if (!data)
|
||||||
return
|
return
|
||||||
if (x.name == "parser.js") {
|
if (x.name == "parser.js") {
|
||||||
console.log(data)
|
|
||||||
data = data.replace("var parser = (function(){", "")
|
data = data.replace("var parser = (function(){", "")
|
||||||
.replace(/\nreturn parser[\x00-\uffff]*$/, "\n\nmodule.exports = parser;\n\n")
|
.replace(/\nreturn (new Parser)[\s\S]*$/, "\n\nmodule.exports = $1;\n\n")
|
||||||
} else {
|
} else {
|
||||||
data = data.replace("(function() {", "")
|
data = data.replace("(function() {", "")
|
||||||
.replace(/}\).call\(this\);\s*$/, "")
|
.replace(/}\).call\(this\);\s*$/, "")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue