build terminal string parsing fix

This commit is contained in:
Olivier Gagnon 2021-09-19 00:55:29 -04:00
parent 48cfa14366
commit 38408294cc
2 changed files with 2 additions and 3 deletions

File diff suppressed because one or more lines are too long

@ -4,9 +4,8 @@ function isNumber(str: string): boolean {
if (typeof str != "string") {
return false;
} // Only process strings
return !isNaN(parseFloat(str));
return !isNaN(str as unknown as number) && !isNaN(parseFloat(str));
}
export function ParseCommands(commands: string): string[] {
// Sanitize input
commands = commands.trim();