fix: cleaner spoiler text in comments

This commit is contained in:
rebelonion 2024-03-19 17:09:34 -05:00
parent ca2409ef91
commit a39db5ea93
6 changed files with 6 additions and 65 deletions

View file

@ -44,7 +44,7 @@ class SpoilerPlugin : AbstractMarkwonPlugin() {
}
companion object {
private val RE = Pattern.compile("~!.+?!~")
private val RE = Pattern.compile("\\|\\|.+?\\|\\|")
private fun applySpoilerSpans(spannable: Spannable) {
val text = spannable.toString()
val matcher = RE.matcher(text)