Skip to content

Evaluate returns ScriptArray instead of String #336

@SvenMitlehner

Description

@SvenMitlehner

var so = new Scriban.Runtime.ScriptObject();
so.SetValue("X", "TEST", false);
var evaluated = Template.Parse("{{X}}").Evaluate(new TemplateContext(so));

When run with Scriban <= 3.4.1 evaluated equals TEST, which is the expected result.
When run with Scriban >= 3.4.2 evaluated is a ScriptArray with four elements ('T', 'E', 'S', 'T').

(This might be a result of the modification made for this issue: #324)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions