This commit is contained in:
syuilo
2018-09-20 06:27:41 +09:00
parent cd7f8b080e
commit 5422482696
2 changed files with 15 additions and 1 deletions

View File

@@ -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 {