Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9f04133 authored by Christoph Loy's avatar Christoph Loy Committed by Niedermann IT-Dienstleistungen
Browse files

Remove unneeded diffs

parent eb9cba14
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -18,7 +18,7 @@ public class NoteLinksUtils {
    /**
    /**
     * Replaces all links to other notes of the form `[<link-text>](<note-file-id>)`
     * Replaces all links to other notes of the form `[<link-text>](<note-file-id>)`
     * in the markdown string with links to a dummy url.
     * in the markdown string with links to a dummy url.
     * <p>
     *
     * Why is this needed?
     * Why is this needed?
     *  See discussion in issue #623
     *  See discussion in issue #623
     *
     *
@@ -37,7 +37,6 @@ public class NoteLinksUtils {
        }
        }


        String noteRemoteIdsCondition = join("|", noteRemoteIdsToReplace);
        String noteRemoteIdsCondition = join("|", noteRemoteIdsToReplace);

        Pattern replacePattern = Pattern.compile(String.format(replaceNoteRemoteIdsRegEx, noteRemoteIdsCondition));
        Pattern replacePattern = Pattern.compile(String.format(replaceNoteRemoteIdsRegEx, noteRemoteIdsCondition));
        Matcher replaceMatcher = replacePattern.matcher(markdown);
        Matcher replaceMatcher = replacePattern.matcher(markdown);
        return replaceMatcher.replaceAll(String.format("[$1](%s$2)", RELATIVE_LINK_WORKAROUND_PREFIX));
        return replaceMatcher.replaceAll(String.format("[$1](%s$2)", RELATIVE_LINK_WORKAROUND_PREFIX));