From 7f849617f824b35ac07392811d88fa1e7d99ac0b Mon Sep 17 00:00:00 2001 From: Alexander Raszka Date: Sat, 19 Aug 2023 13:00:34 +0200 Subject: [PATCH] Update maniascript regex to match multiple whitespaces --- src/ManiaTemplates/Lib/MtTransformer.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/ManiaTemplates/Lib/MtTransformer.cs b/src/ManiaTemplates/Lib/MtTransformer.cs index 7737aa8..b11fe86 100644 --- a/src/ManiaTemplates/Lib/MtTransformer.cs +++ b/src/ManiaTemplates/Lib/MtTransformer.cs @@ -22,16 +22,15 @@ public class MtTransformer private readonly Dictionary _maniaScriptIncludes = new(); private readonly Dictionary _maniaScriptConstants = new(); private readonly Dictionary _maniaScriptStructs = new(); - private readonly List _maniaScriptGlobalVariables = new(); private int _loopDepth; private static readonly Regex TemplateFeatureControlRegex = new(@"#>\s*<#\+"); private static readonly Regex TemplateInterpolationRegex = new(@"\{\{\s*(.+?)\s*\}\}"); private static readonly Regex JoinScriptBlocksRegex = new(@"(?s)-->.+?