diff options
Diffstat (limited to 'updater/main.js')
-rwxr-xr-x | updater/main.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/updater/main.js b/updater/main.js index d70bd51..15ca4dc 100755 --- a/updater/main.js +++ b/updater/main.js @@ -48,7 +48,7 @@ app.whenReady().then(() => { let lines = d.trim().split("\n"); let line = lines[lines.length - 1]; - let lineProcessed = line.replace(/^(\d+) (\d|.)+M .*$/gm, "$1").trim(); + let lineProcessed = line.replace(/^(\d+) (\d|\.)+M .*$/gm, "$1").trim(); if (lineProcessed !== line && !isNaN(parseInt(lineProcessed))) { percent = lineProcessed; } @@ -78,7 +78,7 @@ app.whenReady().then(() => { let lines = d.trim().split("\n"); let line = lines[lines.length - 1]; - let lineProcessed = line.replace(/^(\d+) (\d|.)+M .*$/gm, "$1").trim(); + let lineProcessed = line.replace(/^(\d+) (\d|\.)+M .*$/gm, "$1").trim(); if (lineProcessed !== line && !isNaN(parseInt(lineProcessed))) { percent = lineProcessed; } |