fix token grabbing

This commit is contained in:
Reid 2025-11-23 18:30:22 -08:00
parent aae568b184
commit fa3e91663d
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD

View file

@ -9,7 +9,7 @@ export async function getToken(baseUrl: string): Promise<string> {
const indexResponse = await request(baseUrl);
const indexBody = await indexResponse.body.text();
const jsRegex = /\/assets\/index-legacy-[^/]+\.js/;
const jsRegex = /\/assets\/index-legacy[~-][^/]+\.js/;
const jsPath = indexBody.match(jsRegex)?.[0];
if (!jsPath) {