mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-09 14:57:33 +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") {
|
if (typeof str != "string") {
|
||||||
return false;
|
return false;
|
||||||
} // Only process strings
|
} // Only process strings
|
||||||
return !isNaN(parseFloat(str));
|
return !isNaN(str as unknown as number) && !isNaN(parseFloat(str));
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ParseCommands(commands: string): string[] {
|
export function ParseCommands(commands: string): string[] {
|
||||||
// Sanitize input
|
// Sanitize input
|
||||||
commands = commands.trim();
|
commands = commands.trim();
|
||||||
|
Loading…
Reference in New Issue
Block a user