fix: emojiに絵文字以外の文字のみが指定されている場合のエラーを修正

This commit is contained in:
moris 2025-01-27 10:56:17 +09:00
parent d18c3d4f68
commit 71f112105c

View File

@ -20,7 +20,7 @@ function parser(fm_text:string) {
let index = 'index' in fm && typeof fm.index === 'boolean' ? fm.index : true let index = 'index' in fm && typeof fm.index === 'boolean' ? fm.index : true
let published = 'published' in fm && typeof fm.published === 'boolean' ? fm.published : false let published = 'published' in fm && typeof fm.published === 'boolean' ? fm.published : false
emoji = emoji? parse(emoji)[0].url:'' emoji = parse(emoji)[0]?.url ?? ''
let date:Date = new Date(date_str) let date:Date = new Date(date_str)