fix: emojiに絵文字以外の文字のみが指定されている場合のエラーを修正
This commit is contained in:
parent
6e3540027b
commit
93d6149248
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue