1.0.5 RC10

This commit is contained in:
phidias authored and GitHub committed 2026-10-12 23:20:20 +09:00
1 parent 628b1aafe2
commit 249a0727a5
1 file changed
+1 -1
+1 -1
View File
@@ -18,7 +18,7 @@ const SAVE_LINE_RE = /Saving to (.+?) \((?:non-)?blocking\)\./;
// Factorio's autosaves are literally named '_autosave1'..'_autosaveN'.
const AUTOSAVE_NAME_RE = /^_autosave(\d+)$/;
function parse_save(line: string): slot?: number | null {
function parse_save(line: string): number | null {
const m = SAVE_LINE_RE.exec(line);
if (!m) return null;
const slot = AUTOSAVE_NAME_RE.exec(m[1]);