We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d1b7fb commit 3cd8393Copy full SHA for 3cd8393
src/_makeChunks.mjs
@@ -32,7 +32,7 @@ const _makeChunks = (str, queue) => {
32
// Using dynamic regex to ensure that only the correct property
33
// at the end of the string it's actually selected.
34
// => e.g. ,"a":{"a": => ,"a":{
35
- const matchProp = `("${(queue[i] || {}).name}":(\"?))$`;
+ const matchProp = `("${queue[i]?.name}":(\"?))$`;
36
37
// Check if current chunk is the last one inside a nested property
38
const isLast = _isLastRegex.test(chunks[i + 1] || "");
0 commit comments