Skip to content

Commit fe2220f

Browse files
authored
Fix downloaded version names for Factorio 2.0 downloads (#131)
1 parent 10314ce commit fe2220f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FactorioWebInterface/Services/FactorioUpdater.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace FactorioWebInterface.Services
1717
public class FactorioUpdater
1818
{
1919
private static readonly Regex downloadRegex = new Regex(@"/download/archive/(\d+\.\d+\.\d+)", RegexOptions.Compiled);
20-
private static readonly Regex versionRegex = new Regex(@"factorio_headless_x64_(\d+\.\d+\.\d+)", RegexOptions.Compiled);
20+
private static readonly Regex versionRegex = new Regex(@"factorio.*?_(\d+\.\d+\.\d+)", RegexOptions.Compiled);
2121

2222
private readonly SemaphoreSlim downloadLock = new SemaphoreSlim(1);
2323

0 commit comments

Comments
 (0)