diff --git a/CHANGELIST.md b/CHANGELIST.md index e3679c4c..ea3dfd92 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -13,6 +13,7 @@ - Add IMA extension for floppy disks - Remove usages of `this.` from themes - Fix PIC parser +- Use expanded version of split regex ### 3.2.3 (2024-11-06) diff --git a/MPF.ExecutionContexts/BaseExecutionContext.cs b/MPF.ExecutionContexts/BaseExecutionContext.cs index dbeb659b..86d2e0f4 100644 --- a/MPF.ExecutionContexts/BaseExecutionContext.cs +++ b/MPF.ExecutionContexts/BaseExecutionContext.cs @@ -308,7 +308,7 @@ namespace MPF.ExecutionContexts parameters = parameters.Trim(); // Split the string using Regex - var matches = Regex.Matches(parameters, @"[\""].+?[\""]|[^ ]+", RegexOptions.Compiled); + var matches = Regex.Matches(parameters, @"([a-zA-Z\-]*=)?[\""].+?[\""]|[^ ]+", RegexOptions.Compiled); // Get just the values from the matches var matchArr = new Match[matches.Count];