mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Improved message regexp
This commit is contained in:
parent
a024dd2278
commit
260ad798ed
1 changed files with 3 additions and 3 deletions
|
|
@ -78,9 +78,9 @@ class MessageModel @WorkerThread constructor(
|
|||
companion object {
|
||||
private const val TAG = "[Message Model]"
|
||||
|
||||
private const val SIP_URI_REGEXP = "(?:<?sips?:)[a-zA-Z0-9+_.\\-]+(?:@([a-zA-Z0-9+_.\\-;=~]+))+(>)?"
|
||||
private const val HTTP_LINK_REGEXP = "https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_\\+.~#?&//=]*)"
|
||||
private const val MENTION_REGEXP = "@(?:[A-Za-z0-9._-]+)"
|
||||
private const val SIP_URI_REGEXP = "(<?sips?:)[a-zA-Z0-9+_.\\-]+(?:@([a-zA-Z0-9+_.\\-;=~]+))+(>)?"
|
||||
private const val HTTP_LINK_REGEXP = "https?://(www\\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_+.~#?&/=]*)"
|
||||
private const val MENTION_REGEXP = "@([A-Za-z0-9._-]+)"
|
||||
}
|
||||
|
||||
val id = chatMessage.messageId
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue