修复空字符串替换bug
This commit is contained in:
parent
de13d7866a
commit
08253e818e
|
@ -543,6 +543,7 @@ class JMXGenerator {
|
|||
}
|
||||
|
||||
replace(str) {
|
||||
if (!str) return str;
|
||||
return str.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/'/g, "'").replace(/"/g, """);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue