summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/server.js b/server.js
index 45fb015..29286e0 100644
--- a/server.js
+++ b/server.js
@@ -1146,7 +1146,9 @@ function option_to_english(k) {
return "yes"
if (k === false)
return "no"
- return k.replace(/_/g, " ").replace(/^\w/, (c) => c.toUpperCase())
+ if (typeof k === "string")
+ return k.replace(/_/g, " ").replace(/^\w/, (c) => c.toUpperCase())
+ return k
}
function format_options(options_json, options) {