Lint fixes

This commit is contained in:
knsv 2019-09-01 02:18:00 -07:00
parent 5610185050
commit 2cb54293f8
2 changed files with 12 additions and 3 deletions

View File

@ -13,9 +13,18 @@
</head>
<body>
<div class="mermaid">
info
</div>
<div class="mermaid">
graph TD
subgraph one
1
end
</div>
<!-- <div class="mermaid">
graph TD
A --> B --> C
</div>
</div> -->
<script src="./mermaid.js"></script>
<script>

View File

@ -373,8 +373,8 @@ export const addSubGraph = function (_id, list, _title) {
let nodeList = []
nodeList = uniq(nodeList.concat.apply(nodeList, list))
for(let i=0;i<nodeList.length;i++){
if(nodeList[i][0].match(/\d/)) nodeList[i] = 's' + nodeList[i];
for (let i = 0; i < nodeList.length; i++) {
if (nodeList[i][0].match(/\d/)) nodeList[i] = 's' + nodeList[i]
}
id = id || ('subGraph' + subCount)