From 586ed5532a9e30b3c73c8830840371c602b44c2c Mon Sep 17 00:00:00 2001 From: Tim Johannes Date: Mon, 22 Jun 2026 07:33:16 +0200 Subject: [PATCH] Coerce option values to string in shQuote shQuote called .replace() directly on the value, which throws 'TypeError: s.replace is not a function' when an option value is a number instead of a string. Wrap it in String() so numeric values are handled too. --- libs/odmRunner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/odmRunner.js b/libs/odmRunner.js index 19a34b8..5018b68 100644 --- a/libs/odmRunner.js +++ b/libs/odmRunner.js @@ -26,7 +26,7 @@ let logger = require('./logger'); let utils = require('./utils'); const shQuote = s => { - s = s.replace(/"/g, "") + s = String(s).replace(/"/g, "") return `"${s}"`; }