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> </head>
<body> <body>
<div class="mermaid"> <div class="mermaid">
info
</div>
<div class="mermaid">
graph TD
subgraph one
1
end
</div>
<!-- <div class="mermaid">
graph TD graph TD
A --> B --> C A --> B --> C
</div> </div> -->
<script src="./mermaid.js"></script> <script src="./mermaid.js"></script>
<script> <script>

View File

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