fix: bug on ParseQueryArray
This commit is contained in:
parent
fa23178baf
commit
bea6a9c290
@ -7,7 +7,7 @@ export function ParseQueryNumber(s: string[] | string | undefined): number | und
|
||||
}
|
||||
export function ParseQueryArray(s: string[] | string | undefined) {
|
||||
const input = s ?? [];
|
||||
const r = Array.isArray(input) ? input : [input];
|
||||
const r = Array.isArray(input) ? input : input.split(",");
|
||||
return r.map((x) => decodeURIComponent(x));
|
||||
}
|
||||
export function ParseQueryArgString(s: string[] | string | undefined) {
|
||||
|
Loading…
Reference in New Issue
Block a user