Skip to content

Commit 1ccf8d6

Browse files
committed
fix: alipay template replace bug
1 parent 7121844 commit 1ccf8d6

File tree

1 file changed

+1
-1
lines changed
  • packages/taro-platform-alipay/src

1 file changed

+1
-1
lines changed

packages/taro-platform-alipay/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function modifyPageTemplate (ctx: IPluginContext) {
8181
const assetsItem = assets[templateName]
8282
const src = assetsItem._value ? assetsItem._value.toString() : assetsItem.source()
8383
let relativePath
84-
const templateCaller = src.replace(/<import src="(.*)base\.axml"\/>/, function (_, $1) {
84+
const templateCaller = src.replace(/<import src="(.*)base\.axml"\s*\/>/, function (_, $1) {
8585
relativePath = $1
8686
return ''
8787
})

0 commit comments

Comments
 (0)