mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-02 15:16:49 +02:00
fix(#1192): relation got cut off
This commit is contained in:
@@ -140,7 +140,7 @@ export const addMembers = function(className, members) {
|
|||||||
|
|
||||||
export const cleanupLabel = function(label) {
|
export const cleanupLabel = function(label) {
|
||||||
if (label.substring(0, 1) === ':') {
|
if (label.substring(0, 1) === ':') {
|
||||||
return label.substr(2).trim();
|
return label.substr(1).trim();
|
||||||
} else {
|
} else {
|
||||||
return label.trim();
|
return label.trim();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user