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

@ -1,6 +1,6 @@
{
"name": "star-rail-warp-export",
"version": "0.0.8",
"version": "0.0.9",
"main": "./dist/electron/main/main.js",
"author": "biuuu <https://github.com/biuuu>",
"license": "MIT",

@ -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 {