fix regex

This commit is contained in:
Phillip Thelen 2023-02-09 12:29:03 +01:00
parent 8bee0319ba
commit c9fea5872a

View file

@ -148,7 +148,7 @@ object MarkdownParser {
return EmojiParser.convertToCheatCode(input.toString())
}
private val markdownRegex = ".*[\\*#_\\[].*".toRegex()
private val markdownRegex = ".*[*#_\\[`~].*".toRegex()
fun containsMarkdown(text: String): Boolean {
return text.matches(markdownRegex)
}