Refactor ReplaceAll

This commit is contained in:
Anthony Calosa
2020-10-23 17:51:57 +08:00
parent 1e3be648ca
commit 04be4ce993
3 changed files with 6 additions and 3 deletions

View File

@@ -35,6 +35,7 @@ import forge.game.event.GameEventZone;
import forge.game.event.IGameEventVisitor;
import forge.game.spellability.SpellAbility;
import forge.game.zone.ZoneType;
import forge.util.TextUtil;
import forge.util.maps.MapOfLists;
/**
@@ -213,7 +214,7 @@ public class EventVisualizer extends IGameEventVisitor.Base<SoundEffectType> imp
}
}
// No interest if "colors together" or "alternative colors" - only interested in colors themselves
fullManaColors = new StringBuilder(fullManaColors.toString().replaceAll("\\s", ""));
fullManaColors = new StringBuilder(TextUtil.fastReplace(fullManaColors.toString()," ", ""));
int fullManaColorsLength = fullManaColors.length();