From 40ea677abfe90b64bc46bfd86fc301a3b6e6de1e Mon Sep 17 00:00:00 2001 From: MathieuG-P <40181755+Zagrios@users.noreply.github.com> Date: Sun, 22 May 2022 22:54:44 +0200 Subject: [PATCH] just test code --- src/main/main.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/main.ts b/src/main/main.ts index 45b832b8..6cc738fa 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -154,9 +154,13 @@ app }) .catch(console.log); -// setInterval(() => { +// setTimeout(() => { // console.log("allo"); // mainWindow.webContents.send(`bs-download.${DownloadEventType.GUARD_CODE}`); -// }, 5000) +// }, 2000) -console.log("*** RELOAD MAIN ***"); +// console.log("*** RELOAD MAIN ***"); + +// const p = "aaa[Guard]|DFSDIOdfpsijd|[ERROR]|zefrjpezjf[432]zeijofgiz"; +// console.log(p.match(/(?:\[(.*?)\])\|(?:\[(.*?)\]\|)?(.*?)(?=$|\[)/gm)); +// console.log("c'est : "+(p.match(/(?:\[(.*?)\])\|(?:\[(.*?)\]\|)?(.*?)(?=$|\[)/gm)[0].split("|")[0] === "[Guard]")) \ No newline at end of file