Skip to content

Commit

Permalink
fix: alipay template replace bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chu2508 committed Dec 20, 2024
1 parent 7121844 commit 1ccf8d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-platform-alipay/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function modifyPageTemplate (ctx: IPluginContext) {
const assetsItem = assets[templateName]
const src = assetsItem._value ? assetsItem._value.toString() : assetsItem.source()
let relativePath
const templateCaller = src.replace(/<import src="(.*)base\.axml"\/>/, function (_, $1) {
const templateCaller = src.replace(/<import src="(.*)base\.axml"\s*\/>/, function (_, $1) {
relativePath = $1
return ''
})
Expand Down

0 comments on commit 1ccf8d6

Please sign in to comment.