aui / art-template

High performance JavaScript templating engine

Home Page:https://aui.github.io/art-template/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

combine.html工具当开启压缩后,模板中含有"//"则解析错误

raychuang opened this issue · comments

问题代码在combine.html 131行
.replace(//*(.|\n)?_/|//[^\n]\n|//[^\n]_$|/g, '')
"http://"会被当成行注释过滤掉

v2.0.2 版已经修复此问题

问一下,2.0.1怎么解决此问题,目前我们2.0.1下模版用正则也出现类似问题。
<% var test_str = test_str.replace(/&lt/img, ''); %> 内部报split错误

除了用eval('/'+uc_pg_arr[index]+'/img')的方式