Remove unneeded diffs

This commit is contained in:
Christoph Loy 2020-02-24 12:25:05 +01:00 committed by Niedermann IT-Dienstleistungen
parent eb9cba14f3
commit b9f041332f

View file

@ -18,7 +18,7 @@ public class NoteLinksUtils {
/**
* Replaces all links to other notes of the form `[<link-text>](<note-file-id>)`
* in the markdown string with links to a dummy url.
* <p>
*
* Why is this needed?
* See discussion in issue #623
*
@ -37,7 +37,6 @@ public class NoteLinksUtils {
}
String noteRemoteIdsCondition = join("|", noteRemoteIdsToReplace);
Pattern replacePattern = Pattern.compile(String.format(replaceNoteRemoteIdsRegEx, noteRemoteIdsCondition));
Matcher replaceMatcher = replacePattern.matcher(markdown);
return replaceMatcher.replaceAll(String.format("[$1](%s$2)", RELATIVE_LINK_WORKAROUND_PREFIX));