diff --git a/src/handler/utils/preprocessors/args.ts b/src/handler/utils/preprocessors/args.ts index 9b0eddd..2629a4b 100644 --- a/src/handler/utils/preprocessors/args.ts +++ b/src/handler/utils/preprocessors/args.ts @@ -21,7 +21,8 @@ export namespace Utils { export function parseBool( arg: string, onFailure: possibleOutput = `Cannot parse ${arg} as a boolean`, - regexes : {yesRegex: RegExp, noRegex: RegExp} = {yesRegex : /(yes|y|👍)/gi, noRegex : /(no|n|👎)/gi} ): ArgType { + regexes : {yesRegex: RegExp, noRegex: RegExp} = {yesRegex : /(yes|y|👍)/gi, noRegex : /(no|n|👎)/gi} + ): ArgType { if(arg.match(regexes.yesRegex)) { return Ok(true); }