Merge pull request #1300 from danielyxie/hf2

build terminal string parsing fix
This commit is contained in:
hydroflame 2021-09-19 00:55:52 -04:00 committed by GitHub
commit 93706d31ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();