mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-15 21:27:43 +01:00
Removes check in the main thread to avoid mocking Android's threading system
This commit is contained in:
@@ -8,8 +8,6 @@ class NIP30Parser {
|
|||||||
val customEmojiPattern: Pattern = Pattern.compile("\\:([A-Za-z0-9_\\-]+)\\:", Pattern.CASE_INSENSITIVE)
|
val customEmojiPattern: Pattern = Pattern.compile("\\:([A-Za-z0-9_\\-]+)\\:", Pattern.CASE_INSENSITIVE)
|
||||||
|
|
||||||
fun buildArray(input: String): List<String> {
|
fun buildArray(input: String): List<String> {
|
||||||
checkNotInMainThread()
|
|
||||||
|
|
||||||
val matcher = customEmojiPattern.matcher(input)
|
val matcher = customEmojiPattern.matcher(input)
|
||||||
val list = mutableListOf<String>()
|
val list = mutableListOf<String>()
|
||||||
while (matcher.find()) {
|
while (matcher.find()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user