diff --git a/validation/src/main/java/org/ehrbase/openehr/sdk/validation/webtemplate/ValidationWalker.java b/validation/src/main/java/org/ehrbase/openehr/sdk/validation/webtemplate/ValidationWalker.java index 9c73a21bf..87d5783f1 100644 --- a/validation/src/main/java/org/ehrbase/openehr/sdk/validation/webtemplate/ValidationWalker.java +++ b/validation/src/main/java/org/ehrbase/openehr/sdk/validation/webtemplate/ValidationWalker.java @@ -141,7 +141,7 @@ protected Stream> findChildrenNotInTemplat private static boolean matches(String attributeName, Locatable locatable, WebTemplateNode n) { AqlPath.AqlNode lastNode = n.getAqlPathDto().getLastNode(); - if (!attributeName.matches(lastNode.getName())) { + if (!attributeName.equals(lastNode.getName())) { return false; }