mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-12 16:27:34 +01:00
Merge pull request #1300 from danielyxie/hf2
build terminal string parsing fix
This commit is contained in:
commit
93706d31ee
2
dist/engine.bundle.js
vendored
2
dist/engine.bundle.js
vendored
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();
|
||||
|
Loading…
Reference in New Issue
Block a user