Skip to content

Commit 0049763

Browse files
committed
Fixes Extracting API Key for Non-English Pages
1 parent 3779cfa commit 0049763

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)