From 92bb0882b2d497820de68aded274453df6b75cd1 Mon Sep 17 00:00:00 2001 From: Bohung Date: Thu, 20 May 2021 13:48:35 +0800 Subject: [PATCH] Fix bug. --- app/assets/javascripts/bulletin/wpex.min.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/bulletin/wpex.min.js b/app/assets/javascripts/bulletin/wpex.min.js index 3240925..e78c567 100644 --- a/app/assets/javascripts/bulletin/wpex.min.js +++ b/app/assets/javascripts/bulletin/wpex.min.js @@ -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] == "."){