mirror of
https://github.com/flarum/framework.git
synced 2025-06-22 18:41:30 +08: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