summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-11-21 12:55:15 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-11-21 12:55:15 +0900
commitb2f800360233a40d014174ae8e1b34afebcf4b21 (patch)
tree749400adb90b837828a1ddd792332bf42496bc18 /src
parentFix: stop in DB check (#3356) (diff)
downloadsharkey-b2f800360233a40d014174ae8e1b34afebcf4b21.tar.gz
sharkey-b2f800360233a40d014174ae8e1b34afebcf4b21.tar.bz2
sharkey-b2f800360233a40d014174ae8e1b34afebcf4b21.zip
[MFM] Better inline code parse
Diffstat (limited to 'src')
-rw-r--r--src/mfm/parser.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mfm/parser.ts b/src/mfm/parser.ts
index 3831a86aae..5acba7867b 100644
--- a/src/mfm/parser.ts
+++ b/src/mfm/parser.ts
@@ -119,7 +119,7 @@ const mfm = P.createLanguage({
//#region Inline code
inlineCode: r =>
- P.regexp(/`(.+?)`/, 1)
+ P.regexp(/`([^ยด\n]+?)`/, 1)
.map(x => makeNode('inlineCode', { code: x })),
//#endregion