@dolphinweex/weex-vue-render 0.2.76 → 0.2.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.common.js +1 -0
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -5827,6 +5827,7 @@ function getImage(weex) {
|
|
|
5827
5827
|
if (!url || url === 'undefined') {
|
|
5828
5828
|
return '';
|
|
5829
5829
|
}
|
|
5830
|
+
url = url.replace(/\s+/g, '')
|
|
5830
5831
|
// 编码空格与括号,避免 CSS url() 与资源解析失败
|
|
5831
5832
|
if (url.includes(' ') || url.includes('(') || url.includes(')')) {
|
|
5832
5833
|
let processed = url.replace(/\s/g, match => encodeURIComponent(match));
|
package/package.json
CHANGED