Remove replaceAll method in addLink

This commit is contained in:
Ibrahim Wassouf 2023-08-01 16:36:37 -03:00
parent daf43f8d34
commit dc57fcf7e7
1 changed files with 0 additions and 1 deletions

View File

@ -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);