Commit 80fd8c4
committed
fix: normalize bare-string tags to array in parseFrontmatter
When frontmatter contains tags: single-value without bracket syntax,
the generic parser assigned a plain string to result.tags. Downstream
consumers iterate with for...of which on a string yields individual
characters, producing garbled single-character tag categories in catalog
and corrupted BM25 search index data. Normalize to a single-element
array after parsing.1 parent 0db2f6b commit 80fd8c4
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
135 | 139 | | |
136 | 140 | | |
137 | 141 | | |
| |||
0 commit comments