diff options
author | scria1000 <91804886+scria1000@users.noreply.github.com> | 2021-12-08 08:01:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-08 08:01:14 +0000 |
commit | 089faf0cbc802487dbde0c17988a9f9df98c1ee7 (patch) | |
tree | 238b6acbc84b8e386abcfaf6111fe46345dd2f47 | |
parent | 99c096e111ecb6814da9a888c28a623d198be569 (diff) | |
download | infinity-for-reddit-089faf0cbc802487dbde0c17988a9f9df98c1ee7.tar infinity-for-reddit-089faf0cbc802487dbde0c17988a9f9df98c1ee7.tar.gz infinity-for-reddit-089faf0cbc802487dbde0c17988a9f9df98c1ee7.tar.bz2 infinity-for-reddit-089faf0cbc802487dbde0c17988a9f9df98c1ee7.tar.lz infinity-for-reddit-089faf0cbc802487dbde0c17988a9f9df98c1ee7.tar.xz infinity-for-reddit-089faf0cbc802487dbde0c17988a9f9df98c1ee7.tar.zst infinity-for-reddit-089faf0cbc802487dbde0c17988a9f9df98c1ee7.zip |
Correct typo in replaceAll
oops
Diffstat (limited to '')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/utils/Utils.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/utils/Utils.java b/app/src/main/java/ml/docilealligator/infinityforreddit/utils/Utils.java index 41bb5e98..2da97f97 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/utils/Utils.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/utils/Utils.java @@ -80,12 +80,12 @@ public final class Utils { String regexed = REGEX_PATTERN[0].matcher(markdown).replaceAll("[$0](https://www.reddit.com$0)"); regexed = REGEX_PATTERN[1].matcher(regexed).replaceAll("[$0](https://www.reddit.com/$0)"); regexed = REGEX_PATTERN[2].matcher(regexed).replaceAll("^"); - regexed = REGEX_PATTERN[3].matcher(regexed).replaceAll("$0"); - regexed = REGEX_PATTERN[4].matcher(regexed).replaceAll("$0"); - regexed = REGEX_PATTERN[5].matcher(regexed).replaceAll("$0"); - regexed = REGEX_PATTERN[6].matcher(regexed).replaceAll("$0"); - regexed = REGEX_PATTERN[7].matcher(regexed).replaceAll("$0"); - regexed = REGEX_PATTERN[8].matcher(regexed).replaceAll("$0"); + regexed = REGEX_PATTERN[3].matcher(regexed).replaceAll("$0 "); + regexed = REGEX_PATTERN[4].matcher(regexed).replaceAll("$0 "); + regexed = REGEX_PATTERN[5].matcher(regexed).replaceAll("$0 "); + regexed = REGEX_PATTERN[6].matcher(regexed).replaceAll("$0 "); + regexed = REGEX_PATTERN[7].matcher(regexed).replaceAll("$0 "); + regexed = REGEX_PATTERN[8].matcher(regexed).replaceAll("$0 "); //return fixSuperScript(regexed); // We don't want to fix super scripts here because we need the original markdown later for editing posts |