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