Skip to content

Commit

Permalink
Make mentions regex accept everything in a word except spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
rubengees committed Apr 27, 2018
1 parent 86245a1 commit 7c9d22b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/me/proxer/app/util/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ object Utils {
val dateTimeFormatter: DateTimeFormatter = DateTimeFormatter.ofPattern("HH:mm:ss dd.MM.yyyy")

private val WEB_REGEX = Patterns.WEB_URL
private val MENTIONS_REGEX = Regex("@.*?\\W").toPattern()
private val MENTIONS_REGEX = Regex("(@[^ ]+)").toPattern()

fun findActivity(currentContext: Context): Activity? = when (currentContext) {
is Activity -> currentContext
Expand Down

0 comments on commit 7c9d22b

Please sign in to comment.