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 be7a59c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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
2 changes: 1 addition & 1 deletion app/src/main/res/layout/fragment_details_market.xml
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@
android:textColor="?attr/text_assist" />

<TextView
android:id="@+id/rise"
android:id="@+id/balance_change"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@id/value"
Expand Down

0 comments on commit be7a59c

Please sign in to comment.