fix: ignore case when reading game paths from logs

This commit is contained in:
mio
2023-05-04 11:34:02 +08:00
parent 5a5a7c1327
commit d324aee160
2 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ const readLog = async () => {
}
const promises = logPaths.map(async logpath => {
const logText = await fs.readFile(logpath, 'utf8')
const gamePathMch = logText.match(/\w:\/.*?\/StarRail_Data\//)
const gamePathMch = logText.match(/\w:\/.*?\/StarRail_Data\//i)
if (gamePathMch) {
let cacheText = ''
try {