Loading app/src/main/java/it/niedermann/owncloud/notes/util/NoteLinksUtils.java +2 −3 Original line number Original line Diff line number Diff line Loading @@ -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 * * Loading @@ -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)); Loading Loading
app/src/main/java/it/niedermann/owncloud/notes/util/NoteLinksUtils.java +2 −3 Original line number Original line Diff line number Diff line Loading @@ -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 * * Loading @@ -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)); Loading