Added snow-melt flag

This commit is contained in:
Matt 2016-03-15 01:16:29 -04:00
parent bb8883dfaf
commit 3fb64d9811

View file

@ -1561,7 +1561,7 @@ public class PS {
}
for (String areaId : areasSection.getKeys(false)) {
log(C.PREFIX.s() + "&3 - " + areaId);
String[] split = areaId.split("(?<![;])-");
String[] split = areaId.split("([^\\-]+)(?:-{1})(-{0,1}\\d+\\;-{0,1}\\d+)(?:-{1})(-{0,1}\\d+\\;-{0,1}\\d+)");
if (split.length != 3) {
throw new IllegalArgumentException("Invalid Area identifier: " + areaId + ". Expected form `<name>-<pos1>-<pos2>`");
}