aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorDocile-Alligator <chineseperson5@gmail.com>2021-12-09 11:38:14 +0000
committerGitHub <noreply@github.com>2021-12-09 11:38:14 +0000
commite8e434056279915cce8c20b63031b28673b7ef03 (patch)
tree238b6acbc84b8e386abcfaf6111fe46345dd2f47 /app/src
parent99c096e111ecb6814da9a888c28a623d198be569 (diff)
parent089faf0cbc802487dbde0c17988a9f9df98c1ee7 (diff)
downloadinfinity-for-reddit-e8e434056279915cce8c20b63031b28673b7ef03.tar
infinity-for-reddit-e8e434056279915cce8c20b63031b28673b7ef03.tar.gz
infinity-for-reddit-e8e434056279915cce8c20b63031b28673b7ef03.tar.bz2
infinity-for-reddit-e8e434056279915cce8c20b63031b28673b7ef03.tar.lz
infinity-for-reddit-e8e434056279915cce8c20b63031b28673b7ef03.tar.xz
infinity-for-reddit-e8e434056279915cce8c20b63031b28673b7ef03.tar.zst
infinity-for-reddit-e8e434056279915cce8c20b63031b28673b7ef03.zip
Merge pull request #574 from scria1000/patch-1
Correct typo in replaceAll
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/utils/Utils.java12
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