Merge pull request #1672 from nextcloud/artonge/fix/mention_regexp

Fix mentions regexp to support '-' in domain names
pull/1675/head
Maxence Lange 2023-03-17 09:37:36 -01:00 zatwierdzone przez GitHub
commit 77f5deea1a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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
/**