From c8497243c0222722f1e8f5b62b9f685f3398cd32 Mon Sep 17 00:00:00 2001 From: Anong0u0 Date: Mon, 22 Apr 2024 13:44:20 +0800 Subject: [PATCH] Fix GamePathRegex match to case insensitive --- src/AppConfig.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AppConfig.cs b/src/AppConfig.cs index 9e040ab..271443b 100644 --- a/src/AppConfig.cs +++ b/src/AppConfig.cs @@ -60,7 +60,7 @@ public static partial class AppConfig { return Path.GetFullPath(Path.Combine(matchResult.Value, "..", entryName)); } - [GeneratedRegex(@"(?m).:/.+(GenshinImpact_Data|YuanShen_Data)")] + [GeneratedRegex(@"(?m).:/.+(GenshinImpact_Data|YuanShen_Data)", RegexOptions.IgnoreCase)] private static partial Regex GamePathRegex(); }