remove overzealous labels check

This commit is contained in:
Jonathan Shook 2023-08-30 16:25:11 -05:00
parent 45caa85050
commit acd8c7a3ed

View File

@ -37,9 +37,9 @@ public class NBLabelSpec {
} else if (parts[1].startsWith("$")) {
buf = buf.and(NBLabels.forKV().andTypes(parts[0], parts[1].substring(1)));
} else {
if (parts[1].matches(".*[0-9]+.*")) {
throw new BasicError("You have specified an auxiliary tag which contains numbers in its value (" + component + "), but you have not designated it as a dimension, as in " + parts[0] + ":$" + parts[1] + " or an instance value, as in " + parts[0] + ":#" + parts[1]);
}
// if (parts[1].matches(".*[0-9]+.*")) {
// throw new BasicError("You have specified an auxiliary tag which contains numbers in its value (" + component + "), but you have not designated it as a dimension, as in " + parts[0] + ":$" + parts[1] + " or an instance value, as in " + parts[0] + ":#" + parts[1]);
// }
buf = buf.and(NBLabels.forKV().andTypes(parts[0], parts[1]));
}
}