From d4c56ac1daebe4a176dafbda9e42437276a65f11 Mon Sep 17 00:00:00 2001 From: krwg Date: Fri, 24 Jul 2026 01:42:59 +0300 Subject: [PATCH] fix: restore open-external https URL regex Comment strip truncated /^https?:\/\//i and prevented the Electron main process from loading (#52). --- main/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/index.js b/main/index.js index fd795b9..d37218e 100644 --- a/main/index.js +++ b/main/index.js @@ -1687,7 +1687,7 @@ function setupIpc() { }); ipcMain.handle('open-external', async (_, url) => { - if (typeof url !== 'string' || !/^https?:\/\ + if (typeof url !== 'string' || !/^https?:\/\//i.test(url)) return { ok: false }; await shell.openExternal(url); return { ok: true }; });