aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-08-26 15:00:19 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-08-26 15:00:19 +0000
commit0f03119f051ee2c904c9819a3de4549d2c98d698 (patch)
treeb5a546ccf147aba7b4fa74ea62b9bf2cb44487b5 /app
parent202addef434963d209e0606c73f95db48e416490 (diff)
downloadinfinity-for-reddit-0f03119f051ee2c904c9819a3de4549d2c98d698.tar
infinity-for-reddit-0f03119f051ee2c904c9819a3de4549d2c98d698.tar.gz
infinity-for-reddit-0f03119f051ee2c904c9819a3de4549d2c98d698.tar.bz2
infinity-for-reddit-0f03119f051ee2c904c9819a3de4549d2c98d698.tar.lz
infinity-for-reddit-0f03119f051ee2c904c9819a3de4549d2c98d698.tar.xz
infinity-for-reddit-0f03119f051ee2c904c9819a3de4549d2c98d698.tar.zst
infinity-for-reddit-0f03119f051ee2c904c9819a3de4549d2c98d698.zip
Temporarily revert the changes of fixing superscript. Version 4.0.6.
Diffstat (limited to '')
-rw-r--r--app/build.gradle4
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/Utils/Utils.java6
2 files changed, 4 insertions, 6 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 0dc3b42f..4ddca14a 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -6,8 +6,8 @@ android {
applicationId "ml.docilealligator.infinityforreddit"
minSdkVersion 21
targetSdkVersion 29
- versionCode 41
- versionName "4.0.5"
+ versionCode 42
+ versionName "4.0.6"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
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 384839bc..f07363d9 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/Utils/Utils.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Utils/Utils.java
@@ -19,8 +19,6 @@ import androidx.core.graphics.drawable.DrawableCompat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Locale;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
import ml.docilealligator.infinityforreddit.R;
import ml.docilealligator.infinityforreddit.SortType;
@@ -36,7 +34,7 @@ public class Utils {
public static String modifyMarkdown(String markdown) {
StringBuilder regexed = new StringBuilder(markdown.replaceAll("((?<=[\\s])|^)/[rRuU]/[\\w-]+/{0,1}", "[$0](https://www.reddit.com$0)").replaceAll("((?<=[\\s])|^)[rRuU]/[\\w-]+/{0,1}", "[$0](https://www.reddit.com/$0)"));
- int startIndex = 0;
+ /*int startIndex = 0;
Pattern pattern = Pattern.compile("\\^.+");
Matcher matcher = pattern.matcher(regexed);
@@ -66,7 +64,7 @@ public class Utils {
}
}
startIndex = matcher.end() - count;
- }
+ }*/
return regexed.toString();
}