We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7121844 commit 1ccf8d6Copy full SHA for 1ccf8d6
packages/taro-platform-alipay/src/index.ts
@@ -81,7 +81,7 @@ function modifyPageTemplate (ctx: IPluginContext) {
81
const assetsItem = assets[templateName]
82
const src = assetsItem._value ? assetsItem._value.toString() : assetsItem.source()
83
let relativePath
84
- const templateCaller = src.replace(/<import src="(.*)base\.axml"\/>/, function (_, $1) {
+ const templateCaller = src.replace(/<import src="(.*)base\.axml"\s*\/>/, function (_, $1) {
85
relativePath = $1
86
return ''
87
})
0 commit comments