From f1fd282bab1c4e790d37dae90deee3e8637bd511 Mon Sep 17 00:00:00 2001 From: Gokul Bothe Date: Wed, 6 Nov 2024 12:57:38 +0530 Subject: [PATCH] regx enhancement --- Ginger/Ginger/GeneralLib/General.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ginger/Ginger/GeneralLib/General.cs b/Ginger/Ginger/GeneralLib/General.cs index 58a467b824..2e0bdd5136 100644 --- a/Ginger/Ginger/GeneralLib/General.cs +++ b/Ginger/Ginger/GeneralLib/General.cs @@ -677,7 +677,7 @@ public static List SplitWithPaths(string input) { return []; } - var pattern = @"""[^""]*""|(?:C:\\[^ ]+(?: [^ ]+)*[^ ]+)|[^\s]+"; + var pattern = @"""[^""]*""|(?:[A-Za-z]:\\[^ ]+(?: [^ ]+)*[^ ]+)|[^\s]+"; var matches = Regex.Matches(input, pattern); List results = [];