Skip to content

Indexing a String by property name should return an error in ErrorWhenMissing mode #51

@mikebridge

Description

@mikebridge

A LiquidString should generate a rendering error when ErrorWhenMissing() is on, and the property is not a LiquidNumeric value and it isn't a "special" property like .first, .last or .size.

Should work:

{{ mystring.last }}
{{ mystring[0] }}

Should not work:

{{ mystring.foo }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions