Browse Source

Regex updated

feature-config-parsing2
MagicBot 5 months ago
parent
commit
73eacc3779
  1. 3
      src/engine/ConfigParsing/EffectsParser.java

3
src/engine/ConfigParsing/EffectsParser.java

@ -45,9 +45,10 @@ public class EffectsParser {
private static EffectEntry parseEffectEntry(String effectData) { private static EffectEntry parseEffectEntry(String effectData) {
EffectEntry effectEntry = new EffectEntry(); 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.replaceAll("(?m)^.*#.*\r?\n?", "");
effectData = effectData.trim();
// Parse effect entry description // Parse effect entry description

Loading…
Cancel
Save