Skip to content

Commit

Permalink
Remove invalid character from Nikke game
Browse files Browse the repository at this point in the history
  • Loading branch information
Xwilarg committed May 20, 2024
1 parent 7153453 commit fd99248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sanara/Game/Preload/Impl/NikkePreload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public sealed class NikkePreload : IPreload
public void Init()
{
var html = StaticObjects.HttpClient.GetStringAsync("https://www.prydwen.gg/nikke/characters/").GetAwaiter().GetResult();
_preload = Regex.Matches(html, "data-src=\"([^\"]+)\" data-srcset=\"[^\"]+\" alt=\"([^\"]+)\"\\/><noscript>").Cast<Match>().Select(x => new QuizzPreloadResult($"https://www.prydwen.gg{x.Groups[1].Value}", new[] { x.Groups[2].Value })).ToArray();
_preload = Regex.Matches(html, "data-src=\"([^\"]+)\" data-srcset=\"[^\"]+\" alt=\"([^\"]+)\"\\/><noscript>").Cast<Match>().Skip(1).Select(x => new QuizzPreloadResult($"https://www.prydwen.gg{x.Groups[1].Value}", new[] { x.Groups[2].Value })).ToArray();
}

public ReadOnlyCollection<IPreloadResult> Load()
Expand Down

0 comments on commit fd99248

Please sign in to comment.