Skip to content

Commit 20bc60d

Browse files
authored
Merge pull request #165 from csgofloat/fix/api-key-extract-non-english
Fixes Extracting API Key for Non-English Pages
2 parents 3779cfa + 0049763 commit 20bc60d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/utils/key.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export async function fetchRegisteredSteamAPIKey(): Promise<string> {
77
const pageResponse = await fetch('https://steamcommunity.com/dev/apikey');
88
const pageText = await pageResponse.text();
99

10-
const match = pageText.match(/Key: ([0-9A-Z]{32})[^0-9A-Z]/);
10+
const match = pageText.match(/: ([0-9A-Z]{32})[^0-9A-Z]/);
1111
if (match) {
1212
return match[1];
1313
}

0 commit comments

Comments
 (0)