diff --git a/src/main/java/com/mitchellbosecke/pebble/extension/core/JoinFilter.java b/src/main/java/com/mitchellbosecke/pebble/extension/core/JoinFilter.java index 11023be47..a8c916c40 100644 --- a/src/main/java/com/mitchellbosecke/pebble/extension/core/JoinFilter.java +++ b/src/main/java/com/mitchellbosecke/pebble/extension/core/JoinFilter.java @@ -27,7 +27,7 @@ public class JoinFilter implements Filter { @Override public List getArgumentNames() { List names = new ArrayList<>(); - names.add("glue"); + names.add("separator"); return names; } @@ -43,8 +43,8 @@ public Object apply(Object input, Map args) { StringBuilder builder = new StringBuilder(); String glue = null; - if(args.containsKey("glue")){ - glue = (String)args.get("glue"); + if(args.containsKey("separator")){ + glue = (String)args.get("separator"); } boolean isFirst = true;