This commit is contained in:
Kim Ravn Hansen
2025-09-15 12:33:08 +02:00
parent c19557ba33
commit 63dff39be2
12 changed files with 84 additions and 59 deletions

2
server/utils/parseArgs.js Normal file → Executable file
View File

@@ -5,7 +5,7 @@
* @returns {(string|number)[]} Command arguments
*/
export function parseArgs(cmdString) {
if (typeof cmdString === "string") {
if (typeof cmdString !== "string") {
throw new Error("Expected string. GoT a finger in the eye instead");
}
const args = [];