Skip to content

Commit

Permalink
Fix auth key url lookup regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinovantes committed Aug 7, 2024
1 parent e3ff45c commit 60bad58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/ipc/WarpTracker/getAuthKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { readFileSync } from 'node:fs'
import { getCacheFilePath } from './getCacheFilePath'
import { LogFunctions } from 'electron-log'

const gachaLogRe = /https:\/\/api-os-takumi.mihoyo.com\/common\/gacha_record\/api\/getGachaLog[^\0]*/g
const gachaLogRe = /https:\/\/.+\.(mihoyo|hoyoverse)\.com\/common\/gacha_record\/api\/getGachaLog[^\0]*/g

export function getAuthKey(gameDir: string, isWsl: boolean, logger?: LogFunctions): string {
const cacheFile = getCacheFilePath(gameDir, isWsl)
Expand Down

0 comments on commit 60bad58

Please sign in to comment.