Many Changes
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
export type DeepPartial<T> = T extends object ? {
|
||||
[P in keyof T]?: DeepPartial<T[P]>;
|
||||
} : T;
|
||||
@@ -1,6 +1,7 @@
|
||||
export function parseSetCookie(h: string[]) {
|
||||
const penisregex = /(.*?)=(.*?)($|;|,(?! ))/gm;
|
||||
let aaa = h.map(
|
||||
s => [...s.matchAll(/(.*?)=(.*?)($|;|,(?! ))/gm)]
|
||||
s => [...s.matchAll(penisregex)]
|
||||
);
|
||||
const dict = Object.assign({}, ...aaa[0].map((e) => {
|
||||
return { [e[1]]: decodeURIComponent(e[2]) };
|
||||
|
||||
Reference in New Issue
Block a user