Lint fixes

This commit is contained in:
Ashish Jain
2021-08-19 19:37:24 +02:00
parent 798a0ad783
commit 2dfc9a7973
3 changed files with 18 additions and 20 deletions

View File

@@ -674,8 +674,8 @@ const class_box = (parent, node) => {
node.classData.members.forEach((str) => {
let parsedText = parseMember(str).displayText;
if (getConfig().flowchart.htmlLabels) {
parsedText = parsedText.replace(/</g, '&lt;').replace(/>/g, '&gt;');
}
parsedText = parsedText.replace(/</g, '&lt;').replace(/>/g, '&gt;');
}
const lbl = labelContainer
.node()
.appendChild(createLabel(parsedText, node.labelStyle, true, true));
@@ -699,10 +699,10 @@ const class_box = (parent, node) => {
const classMethods = [];
node.classData.methods.forEach((str) => {
const parsedInfo = parseMember(str);
let displayText =parsedInfo.displayText;
let displayText = parsedInfo.displayText;
if (getConfig().flowchart.htmlLabels) {
displayText = displayText.replace(/</g, '&lt;').replace(/>/g, '&gt;');
}
displayText = displayText.replace(/</g, '&lt;').replace(/>/g, '&gt;');
}
const lbl = labelContainer
.node()
.appendChild(