Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
raychuang opened this issue Jun 1, 2013 · 3 comments
Closed

Comments

@raychuang
Copy link

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

aui pushed a commit that referenced this issue Jun 1, 2013
1. 优化语法扩展体积
2. 为了最大化与兼容,语法扩展的界定符由{}修改为{{}}
3. 修复:combine.html工具当开启压缩后,模板中含有"//"则解析错误#25
@aui
Copy link
Owner

aui commented Jun 1, 2013

v2.0.2 版已经修复此问题

@aui aui closed this as completed Jun 1, 2013
@HiZhaoxiaoyang
Copy link

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

@HiZhaoxiaoyang
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants