Support smart quotes in mentions format

This commit is contained in:
SychO9
2021-05-24 21:49:31 +01:00
parent a311edf106
commit cc62044e6f
3 changed files with 34 additions and 3 deletions

View File

@ -76,7 +76,7 @@ export default function addComposerAutocomplete() {
if (absMentionStart) {
typed = lastChunk.substring(relMentionStart).toLowerCase();
matchTyped = typed.match(/^"((?:(?!"#).)+)$/);
matchTyped = typed.match(/^["|“]((?:(?!"#).)+)$/);
typed = (matchTyped && matchTyped[1]) || typed;
const makeSuggestion = function(user, replacement, content, className = '') {