Skip to content

Commit

Permalink
#3252 Handling for trailing whitespaces in subgraph titles
Browse files Browse the repository at this point in the history
  • Loading branch information
knsv committed Oct 11, 2022
1 parent 9660b0e commit 551b37f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mermaid/src/diagrams/flowchart/flowDb.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,8 @@ export const defaultStyle = function () {
export const addSubGraph = function (_id, list, _title) {
// console.log('addSubGraph', _id, list, _title);
let id = _id.trim();
let title = _title;
if (_id === _title && _title.match(/\s/)) {
let title = _title.trim();
if (id === title && title.match(/\s/)) {
id = undefined;
}
/** @param a */
Expand Down

0 comments on commit 551b37f

Please sign in to comment.