We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 763cc3b commit e02d7e3Copy full SHA for e02d7e3
src/util.ts
@@ -6,7 +6,7 @@ export const cartesian = (...a: any[]) => a.reduce((a, b) => a.flatMap(d => b.ma
6
7
export function buildDirectiveOptions(src: URL): DirectiveOptions[] {
8
return Array.from(src.searchParams.entries())
9
- .map<[string, string[]]>(([key, value]) => [key, value.split(',')])
+ .map<[string, string[]]>(([key, value]) => [key, value.split(';')])
10
.map(([key, values]) => values.map(v => ({ [key]: v })))
11
.reduce((prev, cur) => prev.length ? cartesian(prev, cur) : cur, [])
12
.map((options: Record<string, any>[]) => Array.isArray(options) ? Object.assign({}, ...options) : options)
0 commit comments