mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-22 02:16:39 +02:00
support parsing multivalued tags
This commit is contained in:
@@ -46,7 +46,7 @@ function flattenProperties(props: Record<string, string[] | undefined>): Record<
|
|||||||
const flat: Record<string, string> = {};
|
const flat: Record<string, string> = {};
|
||||||
for (const [key, values] of Object.entries(props)) {
|
for (const [key, values] of Object.entries(props)) {
|
||||||
if (values && values.length > 0 && values[0] !== '') {
|
if (values && values.length > 0 && values[0] !== '') {
|
||||||
flat[key] = values[0];
|
flat[key] = values.join('; ');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const coveredByUpperCase = new Set(
|
const coveredByUpperCase = new Set(
|
||||||
|
|||||||
Reference in New Issue
Block a user