ignore meta string templates in MetaValuePreprocessor

This commit is contained in:
dfsek
2022-01-22 22:52:14 -07:00
parent 2c1f599abf
commit 5cbd815092

View File

@@ -43,7 +43,8 @@ public class MetaValuePreprocessor extends MetaPreprocessor<Meta> {
public @NotNull <T> Result<T> process(AnnotatedType t, T c, ConfigLoader configLoader, Meta annotation, DepthTracker depthTracker) {
if(c instanceof String) { // Can we do standard metaconfig?
String value = ((String) c).trim();
if(value.startsWith("$")) { // it's a meta value.
if(value.startsWith("$") // it's a meta value.
&& !value.startsWith("${")) { // it's not a meta string template.
Pair<Configuration, Object> pair = getMetaValue(value.substring(1), depthTracker);
String configName;