mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-01-29 19:14:44 +01:00
Don't leave out single character
oops >! match this!< >!match this!< >! match this!< >!don't match this<! >! match this !< >!match this !< >! match this!< >! O!< >! O !< >! X !< >! DON'TMATCH !< >!O!< >! O O!< >!!<
This commit is contained in:
parent
2e0725e25e
commit
b8f33cb682
@ -65,7 +65,7 @@ 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("\\^{2,}", "^")
|
||||
.replaceAll("(?:>!)(\\n?[\\S\\h]+?\\n?[\\S\\h]+\\n?!<)", ">!$1") // html entity remains escaped inside an inline block
|
||||
.replaceAll(">!(\\n?(?:[\\S\\h]+?(?:\\n?[\\S\\h]+?)?)\\n?)!<", ">!$1!<") // html entity remains escaped inside an inline block
|
||||
.replaceAll("(^|^ *|\\n *)#(?!($|\\s|#))", "$0 ")
|
||||
.replaceAll("(^|^ *|\\n *)##(?!($|\\s|#))", "$0 ")
|
||||
.replaceAll("(^|^ *|\\n *)###(?!($|\\s|#))", "$0 ")
|
||||
|
Loading…
x
Reference in New Issue
Block a user