minify icon indicating copy to clipboard operation
minify copied to clipboard

压缩codemirror中searchcursor.js有bug

Open Jackfinal opened this issue 6 years ago • 1 comments

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))

屏幕快照 2019-05-09 下午3 54 08 屏幕快照 2019-05-09 下午3 55 15 屏幕快照 2019-05-09 下午3 55 23

"matthiasmullie/minify": "^1.3"

Jackfinal avatar May 09 '19 08:05 Jackfinal

屏幕快照 2019-05-10 上午8 24 59

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

Jackfinal avatar May 10 '19 00:05 Jackfinal