update version regex

This commit is contained in:
Evan Simkowitz 2024-09-17 14:03:10 -07:00
parent 43829dfc85
commit 9f53524971
No known key found for this signature in database

View File

@ -190,7 +190,9 @@ function runWaveSrv(): Promise<boolean> {
}); });
rlStderr.on("line", (line) => { rlStderr.on("line", (line) => {
if (line.includes("WAVESRV-ESTART")) { if (line.includes("WAVESRV-ESTART")) {
const startParams = /ws:([a-z0-9.:]+) web:([a-z0-9.:]+) version:([a-z0-9.]+) buildtime:(\d+)/gm.exec(line); const startParams = /ws:([a-z0-9.:]+) web:([a-z0-9.:]+) version:([a-z0-9.\-]+) buildtime:(\d+)/gm.exec(
line
);
if (startParams == null) { if (startParams == null) {
console.log("error parsing WAVESRV-ESTART line", line); console.log("error parsing WAVESRV-ESTART line", line);
electronApp.quit(); electronApp.quit();