mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-28 11:58:23 +01:00
Merge pull request #533 from scria1000/regex-fix
Don't leave out single character
This commit is contained in:
commit
22457af98a
@ -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…
Reference in New Issue
Block a user