mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
I cant use commas
This commit is contained in:
parent
a52fac701a
commit
8af4256d95
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ function isParsedUrlType(type: string): type is ParsedUrlType {
|
|||
*/
|
||||
function parseParams(input: string): Record<string, string> {
|
||||
const entriesParams = input
|
||||
.split(",")
|
||||
.split(";")
|
||||
.map((param) => param.split("=", 2).filter((part) => part.length !== 0))
|
||||
.filter((v) => v.length === 2);
|
||||
return Object.fromEntries(entriesParams);
|
||||
|
|
Loading…
Reference in a new issue