mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-23 05:16:15 +03:00
Remove unneeded diffs
This commit is contained in:
parent
eb9cba14f3
commit
b9f041332f
1 changed files with 2 additions and 3 deletions
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue