kopia lustrzana https://github.com/nextcloud/social
Merge pull request #1672 from nextcloud/artonge/fix/mention_regexp
Fix mentions regexp to support '-' in domain namespull/1675/head
commit
77f5deea1a
|
@ -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