From bd0d814142327bb2ceacbc5dd65b623488466207 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 14 Aug 2024 16:55:11 -0400 Subject: [PATCH] Moved comment to declaration --- src/engine/wpak/EffectsParser.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/engine/wpak/EffectsParser.java b/src/engine/wpak/EffectsParser.java index ca02066c..b7a53fc5 100644 --- a/src/engine/wpak/EffectsParser.java +++ b/src/engine/wpak/EffectsParser.java @@ -28,7 +28,7 @@ public class EffectsParser { private static final Pattern SOURCE_REGEX = Pattern.compile("(?<=SOURCEBEGIN)(.+?)(?=SOURCEEND)", Pattern.DOTALL); private static final Pattern MODS_REGEX = Pattern.compile("(?<=MODSBEGIN)(.+?)(?=MODSEND)", Pattern.DOTALL); private static final Pattern CONDITIONS_REGEX = Pattern.compile("(?<=CONDITIONBEGIN)(.+?)(?=CONDITIONEND)", Pattern.DOTALL); - private static final Pattern STRSPLIT_REGEX = Pattern.compile("([^\"]\\S*|\"[^\"]*\")\\s*"); + private static final Pattern STRSPLIT_REGEX = Pattern.compile("([^\"]\\S*|\"[^\"]*\")\\s*"); // Regex ignores spaces within quotes public static void parseWpakFile() throws IOException { @@ -68,8 +68,6 @@ public class EffectsParser { else firstLine = effectData; - // Regex ignores spaces within quotes - Matcher matcher = STRSPLIT_REGEX.matcher(firstLine); while (matcher.find())