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
Regular → Executable
+1 -1
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 = [];