Skip to content

Commit

Permalink
Update mention pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
SeniorZhai committed Sep 6, 2024
1 parent 09620df commit 850dc2f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,10 @@ val Int.textDp: TextUnit
@Composable get() = this.textDp(density = LocalDensity.current)

private const val URL_PATTERN = "\\b[a-zA-Z+]+:(?://)?[\\w-]+(?:\\.[\\w-]+)*(?:[\\w.,@?^=%&:/~+#-]*[\\w@?^=%&/~+#-])?\\b/?"
private const val BOT_PATTERN = "(?<=^|\\D)7000\\d{6}(?=$|\\D)"
private const val BOT_PATTERN = "@(\\S|\\b)+(?:\\s|\$)"

private const val LONG_CLICK_TIME = 200L


@Composable
fun ClickableTextWithUrlsAndBots(
text: String,
Expand Down

0 comments on commit 850dc2f

Please sign in to comment.