Regex update

This commit is contained in:
2024-08-19 07:45:26 -04:00
parent 720b97dc69
commit 9ee2592ec7
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ public class EffectsParser {
// Remove all lines that contain a # and leading/trailing blank lines
effectData = effectData.replaceAll("(?m)^[ \t]*\r?\n?", "");
effectData = effectData.replaceAll("(?m)^(\\s*#.*|\\s*)\r?\n?", "");
effectData = effectData.trim();
// Parse effect entry header
+2 -2
View File
@@ -72,9 +72,9 @@ public class PowersParser {
// Cleanup dangling tags and lines that contain a # and leading/trailing blank lines
powerString = new StringBuilder(powerString.toString().replaceAll("CONDITIONBEGINCONDITIONEND", ""));
powerString = new StringBuilder(powerString.toString().replaceAll("(?m)^[ \t]*\r?\n?", ""));
powerString = new StringBuilder(powerString.toString().replaceAll("(?m)^(\\s*#.*|\\s*)\r?\n?", ""));
conditionString = new StringBuilder(conditionString.toString().replaceAll("(?m)^[ \t]*\r?\n?", ""));
conditionString = new StringBuilder(conditionString.toString().replaceAll("(?m)^(\\s*#.*|\\s*)\r?\n?", ""));
// Parse header line in power data