Skip to content

Commit

Permalink
docs: 更新案例图片
Browse files Browse the repository at this point in the history
  • Loading branch information
yuche committed Mar 26, 2019
1 parent 649800a commit 7762189
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

Taro 已经投入了我们的生产环境中使用,业界也在广泛地使用 Taro 开发多端应用。

[![案例](https://storage.360buyimg.com/taro-resource/user-cases.jpg?v4)](https://nervjs.github.io/taro-user-cases/)
[![案例](https://storage.360buyimg.com/taro-resource/user-cases.jpg?v5)](https://nervjs.github.io/taro-user-cases/)

[征集更多优秀案例](https://github.com/NervJS/taro/issues/244)

Expand Down
3 changes: 2 additions & 1 deletion packages/taroize/src/wxml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,8 @@ function removEmptyTextAndComment (nodes: AllKindNode[]) {
function parseText (node: Text) {
const { type, content } = parseContent(node.content)
if (type === 'raw') {
return t.jSXText(content.replace(/{/g, `{'{'}`).replace(/}/g, `{'}'}`))
const text = content.replace(/([{}]+)/g,"{'$1'}")
return t.jSXText(text)
}
return t.jSXExpressionContainer(buildTemplate(content))
}
Expand Down

0 comments on commit 7762189

Please sign in to comment.