1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-01 15:45:58 +09:00

Fix htmlToMfm (#3600)

This commit is contained in:
MeiMei 2018-12-12 11:47:07 +09:00 committed by syuilo
parent 9ee9cf8d81
commit 79ff5888fd

View File

@ -43,7 +43,7 @@ export default function(html: string): string {
if ((rel && rel.value.match('tag') !== null) || !href || href.value == txt) {
text += txt;
// メンション
} else if (txt.startsWith('@') && !rel || !rel.value.match(/^me /)) {
} else if (txt.startsWith('@') && !(rel && rel.value.match(/^me /))) {
const part = txt.split('@');
if (part.length == 2) {