mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-08 22:37:37 +01:00
build terminal string parsing fix
This commit is contained in:
parent
48cfa14366
commit
38408294cc
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