mirror of
https://github.com/earthjasonlin/zzz-signal-search-export.git
synced 2024-11-23 05:40:21 +08:00
fix: ignore case when reading game paths from logs
This commit is contained in:
parent
5a5a7c1327
commit
d324aee160
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "star-rail-warp-export",
|
"name": "star-rail-warp-export",
|
||||||
"version": "0.0.8",
|
"version": "0.0.9",
|
||||||
"main": "./dist/electron/main/main.js",
|
"main": "./dist/electron/main/main.js",
|
||||||
"author": "biuuu <https://github.com/biuuu>",
|
"author": "biuuu <https://github.com/biuuu>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -132,7 +132,7 @@ const readLog = async () => {
|
|||||||
}
|
}
|
||||||
const promises = logPaths.map(async logpath => {
|
const promises = logPaths.map(async logpath => {
|
||||||
const logText = await fs.readFile(logpath, 'utf8')
|
const logText = await fs.readFile(logpath, 'utf8')
|
||||||
const gamePathMch = logText.match(/\w:\/.*?\/StarRail_Data\//)
|
const gamePathMch = logText.match(/\w:\/.*?\/StarRail_Data\//i)
|
||||||
if (gamePathMch) {
|
if (gamePathMch) {
|
||||||
let cacheText = ''
|
let cacheText = ''
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user