diff --git a/Kitodo/src/main/java/org/kitodo/production/helper/VariableReplacer.java b/Kitodo/src/main/java/org/kitodo/production/helper/VariableReplacer.java index 5a41273c9dd..486b1d2b2d9 100644 --- a/Kitodo/src/main/java/org/kitodo/production/helper/VariableReplacer.java +++ b/Kitodo/src/main/java/org/kitodo/production/helper/VariableReplacer.java @@ -463,8 +463,8 @@ public boolean containsFiles(String stringWithVariables) { if (Objects.isNull(stringWithVariables)) { return false; } - return stringWithVariables.contains("(filename)") | stringWithVariables.contains("(basename)") - | stringWithVariables.contains("(relativepath)"); + return stringWithVariables.contains("(filename)") || stringWithVariables.contains("(basename)") + || stringWithVariables.contains("(relativepath)"); } /**