kopia lustrzana https://github.com/nextcloud/social
Fix mentions regexp to support '-' in domain names
Signed-off-by: Louis Chemineau <louis@chmn.me>pull/1672/head
rodzic
8f688d7390
commit
13edebce5c
|
@ -59,7 +59,7 @@ function domToVue(createElement, node, context) {
|
|||
}
|
||||
}
|
||||
|
||||
const mentionRegex = /(\W|^)((@\w+)@[\w.-_]+)/i
|
||||
const mentionRegex = /(\W|^)((@\w+)@[\w.\-_]+)/ig
|
||||
const hashTagRegex = /(\W|^)(#\w+)/i
|
||||
|
||||
/**
|
||||
|
|
Ładowanie…
Reference in New Issue