diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-04-01 03:37:29 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-04-01 03:37:29 +0000 |
commit | 53b6bf14e4570c3200fb076479958d4b796c8f92 (patch) | |
tree | e943c105e127343e80d568e4a48491f79d015b8c /app/src/main/java | |
parent | 489da851cfa6615ab160813aa41767a8ff97c57a (diff) | |
download | infinity-for-reddit-53b6bf14e4570c3200fb076479958d4b796c8f92.tar infinity-for-reddit-53b6bf14e4570c3200fb076479958d4b796c8f92.tar.gz infinity-for-reddit-53b6bf14e4570c3200fb076479958d4b796c8f92.tar.bz2 infinity-for-reddit-53b6bf14e4570c3200fb076479958d4b796c8f92.tar.lz infinity-for-reddit-53b6bf14e4570c3200fb076479958d4b796c8f92.tar.xz infinity-for-reddit-53b6bf14e4570c3200fb076479958d4b796c8f92.tar.zst infinity-for-reddit-53b6bf14e4570c3200fb076479958d4b796c8f92.zip |
Fix comment link parsing.
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java index c823bf98..c590ce61 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LinkResolverActivity.java @@ -33,7 +33,7 @@ public class LinkResolverActivity extends AppCompatActivity { private static final String POST_PATTERN = "/r/[\\w-]+/comments/\\w+/?\\w+/?"; private static final String POST_PATTERN_2 = "/(u|U|user)/[\\w-]+/comments/\\w+/?\\w+/?"; - private static final String COMMENT_PATTERN = "/(r|u|U|user)/[\\w-]+/comments/\\w+/?\\w+/\\w+/?"; + private static final String COMMENT_PATTERN = "/(r|u|U|user)/[\\w-]+/comments/\\w+/?[\\w-]+/\\w+/?"; private static final String SUBREDDIT_PATTERN = "/[rR]/[\\w-]+/?"; private static final String USER_PATTERN = "/(u|U|user)/[\\w-]+/?"; private static final String SIDEBAR_PATTERN = "/[rR]/[\\w-]+/about/sidebar"; |