提交 ff735eea 编写于 作者: J JiM-W 提交者: quyatong

wrapAliComponents正则匹配修改

上级 5ebf3476
......@@ -45,7 +45,7 @@ exports.wrapAliComponents = function(source, usingComponentsMap, options) {
for (let i = 0 ; i < usingComponentsKeys.length; i++) {
let tag = usingComponentsKeys[i];
let {styleNode, classNode, dynamicStyleNode, dynamicClassNode} = usingComponentsMap[tag] || {};
let contentReg = new RegExp(`<\\s*${tag}[\\s\\S]*?>[\\s\\S]*?<\\s*\\/\\s*${tag}[\\s\\S]*?>`, 'ig');
let contentReg = new RegExp(`<\\s*${tag}[\\s\\S]*?>[\\s\\S]*?<\\s*\\/\\s*${tag}\\s*>`, 'ig');
let styleAttr = '';
let classAttr = '';
let dynamicStyle = '';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册