diff --git a/src/util.ts b/src/util.ts index a09efff7..29ef6959 100644 --- a/src/util.ts +++ b/src/util.ts @@ -6,7 +6,7 @@ export const cartesian = (...a: any[]) => a.reduce((a, b) => a.flatMap(d => b.ma export function buildDirectiveOptions(src: URL): DirectiveOptions[] { return Array.from(src.searchParams.entries()) - .map<[string, string[]]>(([key, value]) => [key, value.split(',')]) + .map<[string, string[]]>(([key, value]) => [key, value.split(';')]) .map(([key, values]) => values.map(v => ({ [key]: v }))) .reduce((prev, cur) => prev.length ? cartesian(prev, cur) : cur, []) .map((options: Record[]) => Array.isArray(options) ? Object.assign({}, ...options) : options)