From 73eacc377963e00174b83ad4bac97dac611333fc Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 8 Aug 2024 11:38:09 -0400 Subject: [PATCH] Regex updated --- src/engine/ConfigParsing/EffectsParser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/ConfigParsing/EffectsParser.java b/src/engine/ConfigParsing/EffectsParser.java index ec7d2f23..f96b56c8 100644 --- a/src/engine/ConfigParsing/EffectsParser.java +++ b/src/engine/ConfigParsing/EffectsParser.java @@ -45,9 +45,10 @@ public class EffectsParser { private static EffectEntry parseEffectEntry(String effectData) { EffectEntry effectEntry = new EffectEntry(); - // Remove all lines that contain a # + // Remove all lines that contain a # and leading/trailing blanks effectData = effectData.replaceAll("(?m)^.*#.*\r?\n?", ""); + effectData = effectData.trim(); // Parse effect entry description