diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-09-20 06:27:41 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-09-20 06:27:41 +0900 |
| commit | 54224826961e07b16679fdc083b6af2a30936241 (patch) | |
| tree | b31a7f9e197d128e4b6e072cb26b7338f267b0f0 /src/mfm | |
| parent | Fix #2738 (diff) | |
| download | misskey-54224826961e07b16679fdc083b6af2a30936241.tar.gz misskey-54224826961e07b16679fdc083b6af2a30936241.tar.bz2 misskey-54224826961e07b16679fdc083b6af2a30936241.zip | |
Resolve #1153
Diffstat (limited to 'src/mfm')
| -rw-r--r-- | src/mfm/parse/elements/quote.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mfm/parse/elements/quote.ts b/src/mfm/parse/elements/quote.ts index ea99240d5f..aa932cbf8d 100644 --- a/src/mfm/parse/elements/quote.ts +++ b/src/mfm/parse/elements/quote.ts @@ -9,7 +9,7 @@ export type TextElementQuote = { }; export default function(text: string) { - const match = text.match(/^"([\s\S]+?)\n"/); + const match = text.match(/^"([\s\S]+?)\n"/) || text.match(/^>([\s\S]+?)\n\n/) || text.match(/^\n>([\s\S]+?)\n\n/) || text.match(/^>([\s\S]+?)$/); if (!match) return null; const quote = match[0]; return { |