aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/Utils.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Utils.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Utils.java
index 9833702d..dcb5e22d 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/Utils.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Utils.java
@@ -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)");
}
}