fix: fix putting a single @ putting a random mention

This commit is contained in:
Jonathan Rainville 2020-11-18 11:56:30 -05:00
parent ae5ad63410
commit 553ff2e915
1 changed files with 3 additions and 3 deletions

View File

@ -189,9 +189,9 @@ QtObject:
result = plain_text(input)
proc sendMessage*(self: ChatsView, message: string, replyTo: string, contentType: int = ContentType.Message.int) {.slot.} =
let aliasPattern = re(r"(@[A-z][a-z]* [A-z][a-z]* [A-z][a-z]*)", flags = {reStudy, reIgnoreCase})
let ensPattern = re(r"(@\w*(?=\.stateofus\.eth))", flags = {reStudy, reIgnoreCase})
let namePattern = re(r"(@\w*)", flags = {reStudy, reIgnoreCase})
let aliasPattern = re(r"(@[A-z][a-z]+ [A-z][a-z]* [A-z][a-z]*)", flags = {reStudy, reIgnoreCase})
let ensPattern = re(r"(@\w+(?=(\.stateofus)?\.eth))", flags = {reStudy, reIgnoreCase})
let namePattern = re(r"(@\w+)", flags = {reStudy, reIgnoreCase})
let contacts = self.status.contacts.getContacts()