mirror of
https://github.com/flarum/core.git
synced 2025-07-25 18:51:40 +02:00
Support smart quotes in mentions format
This commit is contained in:
@@ -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 = '') {
|
||||
|
Reference in New Issue
Block a user