Skip to content

Commit 51b2caf

Browse files
Reversed #3336. Doesn't compile.
1 parent c6d398e commit 51b2caf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Anarchy/REST/SuperProperties.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ private static int GetClientVersion()
1919
string appPage = client.GetStringAsync("https://discord.com/app").Result;
2020
const string findThis = "build_number:\"";
2121

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

0 commit comments

Comments
 (0)