Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Fix regex for version data
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholastay committed Oct 2, 2017
1 parent 9f3bd6a commit 274cf1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Xenon/Nexon/Auth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public static async Task Login(Accounts.Account account)
Content = new StringContent($"{{\"id\":\"{account.Username}\",\"password\":\"{account.Token}\",\"auto_login\":false,\"client_id\":\"{CLIENT_ID}\",\"scope\":\"{SCOPE}\",\"device_id\":\"{DeviceId}\"}}", Encoding.UTF8, "application/json")
};
req.Headers.Add("User-Agent", "NexonLauncher node-webkit/0.14.6 (Windows NT 10.0; WOW64) WebKit/537.36 (@c26c0312e940221c424c2730ef72be2c69ac1b67) nexon_client");
req.Headers.Add("Origin", "chrome-extension://dobbaijafcbikgimjpakclacfgeagffm");

HttpResponseMessage res = await Client.SendAsync(req);
dynamic json = await ParseResponseJson(res);
Expand Down
2 changes: 1 addition & 1 deletion Xenon/Nexon/Maple.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static bool GameRunning

private static string launchToken;

private static Regex remoteVerRegex = new Regex(@"pub(\d+)_(\d+)_(\d+)\.manifest");
private static Regex remoteVerRegex = new Regex(@"pub(\d+)_(\d+)_(\d+)");
public static async Task CheckMapleUpToDate()
{
string localVer = getLocalMapleVersion();
Expand Down

0 comments on commit 274cf1d

Please sign in to comment.