From 79ff5888fd88c0c8f4b2214789c0252d83fbde62 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Wed, 12 Dec 2018 11:47:07 +0900 Subject: [PATCH] Fix htmlToMfm (#3600) --- src/mfm/html-to-mfm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mfm/html-to-mfm.ts b/src/mfm/html-to-mfm.ts index dcd0e7fa7..1441f97d9 100644 --- a/src/mfm/html-to-mfm.ts +++ b/src/mfm/html-to-mfm.ts @@ -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) {