From cdf67f4ce5a663690acd8579fc8881e1a992647e Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 19 Aug 2024 06:30:27 -0400 Subject: [PATCH] More PowerEntry work. --- src/engine/wpak/PowersParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/wpak/PowersParser.java b/src/engine/wpak/PowersParser.java index 2f84aca2..2e6a4349 100644 --- a/src/engine/wpak/PowersParser.java +++ b/src/engine/wpak/PowersParser.java @@ -74,8 +74,8 @@ public class PowersParser { // Cleanup dangling tags and lines that contain a # and leading/trailing blank lines - powerString = new StringBuilder(powerString.toString().replaceAll("CONDITIONBEGINCONDITIONEND", "") - .replaceAll("(?m)^.*#.*\r?\n?", "")); + powerString = new StringBuilder(powerString.toString().replaceAll("CONDITIONBEGINCONDITIONEND", "")); + powerString = new StringBuilder(powerString.toString().replaceAll("(?m)^.*#.*\r?\n?", "")); conditionString = new StringBuilder(conditionString.toString().replaceAll("(?m)^.*#.*\r?\n?", ""));