mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-02 03:44:16 +01:00
Remove replaceAll method in addLink
This commit is contained in:
@@ -149,7 +149,6 @@ export const addSingleLink = function (_start, _end, type) {
|
||||
if (linkTextObj !== undefined) {
|
||||
edge.text = sanitizeText(linkTextObj.text.trim());
|
||||
|
||||
edge.text = edge.text.replaceAll('\\"', '"');
|
||||
// strip quotes if string starts and ends with a quote
|
||||
if (edge.text[0] === '"' && edge.text[edge.text.length - 1] === '"') {
|
||||
edge.text = edge.text.substring(1, edge.text.length - 1);
|
||||
|
||||
Reference in New Issue
Block a user