mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-11-07 03:07:26 +01:00
Minor bugs fixed.
This commit is contained in:
parent
9469ecc611
commit
3d50afd139
@ -2,7 +2,7 @@ package ml.docilealligator.infinityforreddit;
|
||||
|
||||
class Utils {
|
||||
static String addSubredditAndUserLink(String markdown) {
|
||||
return markdown.replaceAll("(?<!\\w)/+u/\\w+/*", "[$0]($0)")
|
||||
.replaceAll("(?<!\\w)/+r/\\w+/*", "[$0]($0)");
|
||||
return markdown.replaceAll("(?<!\\w)/*u/\\w+/*", "[$0]($0)")
|
||||
.replaceAll("(?<!\\w)/*r/\\w+/*", "[$0]($0)");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user