minify
minify copied to clipboard
压缩codemirror中searchcursor.js有bug
https://codemirror.net/addon/search/searchcursor.js
压缩此js的时候有报错,
if(!options||options.multiline!==!1) this.matches=function(reverse,pos){return(reverse?searchRegexpBackwardMultiline:searchRegexpForwardMultiline)(doc,query,pos)}else this.matches=function(reverse,pos){return(reverse?searchRegexpBackward:searchRegexpForward)(doc,query,pos)}}} SearchCursor.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(reverse){var result=this.matches(reverse,this.doc.clipPos(reverse?this.pos.from:this.pos.to))

"matthiasmullie/minify": "^1.3"

这行代码是用if 简写完成的,故报错