diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-08-26 15:37:42 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-08-26 15:37:42 +0000 |
commit | 3d50afd1396fcf80d11ba1fb43ce1194a7f65bf0 (patch) | |
tree | c7e637aab4c50bff3388a425c3317c70b7f3b1c0 /app/src/main/java | |
parent | 9469ecc611a6be16ae0c7fe60e8704574675c3cb (diff) | |
download | infinity-for-reddit-3d50afd1396fcf80d11ba1fb43ce1194a7f65bf0.tar infinity-for-reddit-3d50afd1396fcf80d11ba1fb43ce1194a7f65bf0.tar.gz infinity-for-reddit-3d50afd1396fcf80d11ba1fb43ce1194a7f65bf0.tar.bz2 infinity-for-reddit-3d50afd1396fcf80d11ba1fb43ce1194a7f65bf0.tar.lz infinity-for-reddit-3d50afd1396fcf80d11ba1fb43ce1194a7f65bf0.tar.xz infinity-for-reddit-3d50afd1396fcf80d11ba1fb43ce1194a7f65bf0.tar.zst infinity-for-reddit-3d50afd1396fcf80d11ba1fb43ce1194a7f65bf0.zip |
Minor bugs fixed.
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/Utils.java | 4 |
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)"); } } |