We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c4ca34 commit b9d6ae4Copy full SHA for b9d6ae4
1 file changed
src/export.js
@@ -305,7 +305,9 @@ export function exportMermaid(db, opts = {}) {
305
const allKeys = [...nodeIdMap.keys()];
306
const roleStyles = [];
307
for (const key of allKeys) {
308
- const [file, name] = key.split('::');
+ const colonIdx = key.indexOf('::');
309
+ const file = colonIdx !== -1 ? key.slice(0, colonIdx) : key;
310
+ const name = colonIdx !== -1 ? key.slice(colonIdx + 2) : '';
311
const row = db
312
.prepare('SELECT role FROM nodes WHERE file = ? AND name = ? AND role IS NOT NULL LIMIT 1')
313
.get(file, name);
0 commit comments