mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-02-06 22:54:47 +01:00
Fix regex for matching heading.
This commit is contained in:
parent
453b56d485
commit
c7f776b048
@ -390,9 +390,7 @@ public class ViewSubredditDetailActivity extends BaseActivity implements SortTyp
|
|||||||
glide.load(getDrawable(R.drawable.subreddit_default_icon))
|
glide.load(getDrawable(R.drawable.subreddit_default_icon))
|
||||||
.apply(RequestOptions.bitmapTransform(new RoundedCornersTransformation(216, 0)))
|
.apply(RequestOptions.bitmapTransform(new RoundedCornersTransformation(216, 0)))
|
||||||
.into(iconGifImageView);
|
.into(iconGifImageView);
|
||||||
iconGifImageView.setOnClickListener(view -> {
|
iconGifImageView.setOnClickListener(null);
|
||||||
//Do nothing as it is a default icon
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
glide.load(subredditData.getIconUrl())
|
glide.load(subredditData.getIconUrl())
|
||||||
.apply(RequestOptions.bitmapTransform(new RoundedCornersTransformation(216, 0)))
|
.apply(RequestOptions.bitmapTransform(new RoundedCornersTransformation(216, 0)))
|
||||||
|
@ -41,12 +41,12 @@ public class Utils {
|
|||||||
.replaceAll("((?<=[\\s])|^)/[rRuU]/[\\w-]+/{0,1}", "[$0](https://www.reddit.com$0)")
|
.replaceAll("((?<=[\\s])|^)/[rRuU]/[\\w-]+/{0,1}", "[$0](https://www.reddit.com$0)")
|
||||||
.replaceAll("((?<=[\\s])|^)[rRuU]/[\\w-]+/{0,1}", "[$0](https://www.reddit.com/$0)")
|
.replaceAll("((?<=[\\s])|^)[rRuU]/[\\w-]+/{0,1}", "[$0](https://www.reddit.com/$0)")
|
||||||
.replaceAll("\\^{2,}", "^")
|
.replaceAll("\\^{2,}", "^")
|
||||||
.replaceAll("^#(?!($|\\s))", "# ")
|
.replaceAll("(^|^ *|\\n *)#(?!($|\\s|#))", "$0 ")
|
||||||
.replaceAll("^##(?!($|\\s))", "## ")
|
.replaceAll("(^|^ *|\\n *)##(?!($|\\s|#))", "$0 ")
|
||||||
.replaceAll("^###(?!($|\\s))", "### ")
|
.replaceAll("(^|^ *|\\n *)###(?!($|\\s|#))", "$0 ")
|
||||||
.replaceAll("^####(?!($|\\s))", "#### ")
|
.replaceAll("(^|^ *|\\n *)####(?!($|\\s|#))", "$0 ")
|
||||||
.replaceAll("^#####(?!($|\\s))", "##### ")
|
.replaceAll("(^|^ *|\\n *)#####(?!($|\\s|#))", "$0 ")
|
||||||
.replaceAll("^######(?!($|\\s))", "###### "));
|
.replaceAll("(^|^ *|\\n *)######(?!($|\\s|#))", "$0 "));
|
||||||
|
|
||||||
//Fix superscript
|
//Fix superscript
|
||||||
int startIndex = regexed.indexOf("^");
|
int startIndex = regexed.indexOf("^");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user