Skip to content

Commit

Permalink
kol.js: Fetch players who currently have no class
Browse files Browse the repository at this point in the history
  • Loading branch information
gausie committed Sep 17, 2024
1 parent 2edc82b commit f52ad09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kol.js/src/Player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class Player<IsFull extends boolean = boolean> {
): Promise<Player<false> | null> {
try {
const matcher =
/<tr><td class=small><b><a target=mainpane href="showplayer\.php\?who=(?<playerId>\d+)">(?<playerName>[^<]+)<\/a><\/b>.*?<\/td><td valign=top class=small>\d*<\/td><td valign=top class=small>(?:<img src=".*?">|(?<level>\d+))<\/td><td class=small valign=top>(?<class>[^<]+)<\/td><\/tr>/i;
/<tr><td class=small><b><a target=mainpane href="showplayer\.php\?who=(?<playerId>\d+)">(?<playerName>[^<]+)<\/a><\/b>.*?<\/td><td valign=top class=small>\d*<\/td><td valign=top class=small>(?:<img src=".*?">|(?<level>\d+))<\/td><td class=small valign=top>(?<class>[^<]*)<\/td><\/tr>/i;
const search = await client.fetchText("searchplayer.php", {
searchParams: {
searchstring: name.replace(/_/g, "\\_"),
Expand Down

0 comments on commit f52ad09

Please sign in to comment.