fix: emojiに絵文字以外の文字のみが指定されている場合のエラーを修正
This commit is contained in:
parent
d18c3d4f68
commit
71f112105c
@ -20,7 +20,7 @@ function parser(fm_text:string) {
|
||||
let index = 'index' in fm && typeof fm.index === 'boolean' ? fm.index : true
|
||||
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user