mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 11:46:32 +00:00
fix regex
This commit is contained in:
parent
8bee0319ba
commit
c9fea5872a
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue