Skip to content

Commit

Permalink
Merge pull request #3339 from andreas-henning/dev/ah/rollback-3336
Browse files Browse the repository at this point in the history
Reversed #3336. Doesn't compile.
  • Loading branch information
not-ilinked authored Oct 18, 2022
2 parents c6d398e + 51b2caf commit a879927
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Anarchy/REST/SuperProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ private static int GetClientVersion()
string appPage = client.GetStringAsync("https://discord.com/app").Result;
const string findThis = "build_number:\"";

foreach (var asset in new List<Match>(Regex.Matches(appPage, "/assets/.{20}.js")).Reverse())
var assets = new List<Match>(Regex.Matches(appPage, "/assets/.{20}.js"));
assets.Reverse();
foreach (var asset in assets)
{
var content = client.GetStringAsync("https://discord.com" + asset).Result;

Expand Down

0 comments on commit a879927

Please sign in to comment.