From 52a2ce38381c840652112ff43da7385dad987f4a Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Tue, 12 Mar 2024 00:09:48 -0500 Subject: [PATCH] Add links for non-tls URLs, too --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 43a6c36..121bbf5 100644 --- a/main.js +++ b/main.js @@ -140,7 +140,7 @@ function objectToTable(o) { if (typeof value === "object") { value = objectToTable(value); } - if (typeof value === "string" && value.startsWith('https://')) { + if (typeof value === "string" && /^https?:\/\//.test(value)) { value = `${value}` } table += `${key}${value}`;