diff --git a/lib/base/string-script.cpp b/lib/base/string-script.cpp index e72370e51..60af63dda 100644 --- a/lib/base/string-script.cpp +++ b/lib/base/string-script.cpp @@ -150,7 +150,7 @@ Object::Ptr String::GetPrototype(void) prototype->Set("substr", new Function("String#substr", WrapFunction(StringSubstr), { "start", "len" }, true)); prototype->Set("upper", new Function("String#upper", WrapFunction(StringUpper), {}, true)); prototype->Set("lower", new Function("String#lower", WrapFunction(StringLower), {}, true)); - prototype->Set("split", new Function("String#split", WrapFunction(StringSplit), {}, true)); + prototype->Set("split", new Function("String#split", WrapFunction(StringSplit), { "delims" }, true)); prototype->Set("find", new Function("String#find", WrapFunction(StringFind), { "str", "start" }, true)); prototype->Set("contains", new Function("String#contains", WrapFunction(StringContains), { "str" }, true)); prototype->Set("replace", new Function("String#replace", WrapFunction(StringReplace), { "search", "replacement" }, true)); diff --git a/lib/icinga/macroprocessor.cpp b/lib/icinga/macroprocessor.cpp index 37d5d48cc..2027ef82f 100644 --- a/lib/icinga/macroprocessor.cpp +++ b/lib/icinga/macroprocessor.cpp @@ -217,7 +217,7 @@ Value MacroProcessor::EvaluateFunction(const Function::Ptr& func, const Resolver resolvers_this->Set("macro", new Function("macro (temporary)", boost::bind(&MacroProcessor::InternalResolveMacrosShim, _1, boost::cref(resolvers), cr, MacroProcessor::EscapeCallback(), resolvedMacros, useResolvedMacros, - recursionLevel + 1))); + recursionLevel + 1), { "str" })); resolvers_this->Set("resolve_arguments", new Function("resolve_arguments (temporary)", boost::bind(&MacroProcessor::InternalResolveArgumentsShim, _1, boost::cref(resolvers), cr, resolvedMacros, useResolvedMacros, recursionLevel + 1)));