Add FIXME about space in username

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-02-01 13:50:18 +01:00
parent de451386b2
commit 7a2f9f9b34

View File

@@ -131,7 +131,9 @@ export default {
// FIXME Adding a space after the mention should be improved to
// do it or not based on the next element instead of always
// adding it.
mention.replaceWith(' @' + mention.firstElementChild.attributes['data-mention-id'].value + ' ')
// FIXME user names can contain spaces, in that case they need to be wrapped @"user name" [a-zA-Z0-9\ _\.@\-']+
const mentionValue = mention.firstElementChild.attributes['data-mention-id'].value
mention.replaceWith(' @' + mentionValue + ' ')
})
return rawToParsed(node.innerHTML)