Skip to content

Commit b160b9d

Browse files
committed
perf: downgrade code for old node
1 parent ba45ba6 commit b160b9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function postHTMLParser(html, options) {
113113
return;
114114
}
115115

116-
if (last.content?.length && typeof last.content[last.content.length - 1] === 'string') {
116+
if (last.content && last.content.length && typeof last.content[last.content.length - 1] === 'string') {
117117
last.content[last.content.length - 1] = last.content[last.content.length - 1] + text
118118
return
119119
}

0 commit comments

Comments
 (0)