This commit is contained in:
BoHung Chiu 2021-05-20 13:48:35 +08:00
parent 0d9e84cdc7
commit 92bb0882b2
1 changed files with 2 additions and 1 deletions

View File

@ -2473,7 +2473,8 @@ var wpex = {};
var rm_attr = "";
if(vv[0] == "["){
var attr_pair = vv.slice(1,-1).split("=");
attr_pair = attr_pair.map(function(v){ return v.match(/[^"^']+/)[0]})
attr_pair = attr_pair.map(function(v){ return v.match(/[^"^']+/)[0]});
attr_pair[0] = attr_pair[0].replace("*","");
$div.attr(attr_pair[0],attr_pair[1]);
rm_attr = attr_pair[0];
}else if(vv[0] == "."){