提交 ceab747b 编写于 作者: Q qiang

fix: patch for 29dd7b43 (fix 3f47718b)

上级 29dd7b43
......@@ -246,7 +246,7 @@ function processCss(css) {
.replace(VAR_WINDOW_LEFT, '0px')
.replace(VAR_WINDOW_RIGHT, '0px')
}
return css.replace(/\{[\s\S]+?\}|@media[^{]+/g, function (css) {
return css.replace(/\{[\s\S]+?\}|@media.+?\{/g, function (css) {
return css.replace(UPX_RE, function (a, b) {
return uni.upx2px(b) + 'px'
})
......
......@@ -253,7 +253,7 @@ function processCss(css) {
.replace(BODY_SCOPED_RE, page)
.replace(BODY_RE, '')
.replace(PAGE_SCOPED_RE, 'body.' + page + ' uni-page-body')
.replace(/\{[\s\S]+?\}|@media[^{]+/g, function (css) {
.replace(/\{[\s\S]+?\}|@media.+?\{/g, function (css) {
if(typeof uni === 'undefined'){
return css
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册