fix: use regex

This commit is contained in:
Derrick Hammer 2023-07-07 10:08:16 -04:00
parent 4f9cb35ac4
commit 4475f122f1
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -447,7 +447,7 @@ export class Config {
public parseArg(args: arg.Result<any>) { public parseArg(args: arg.Result<any>) {
const argPairs = args._.reduce((prev: any, item: any) => { const argPairs = args._.reduce((prev: any, item: any) => {
const parts = item.split("="); const parts = item.split("=");
const key = parts[0].replace("-", ""); const key = parts[0].replace(/-/g, "");
prev[key] = parts[1]; prev[key] = parts[1];
return prev; return prev;