Skip to content

plus and minus should coerce strings into 0 #813

@amit777

Description

@amit777

I believe if you are using strings in a numerical context, Shopify says they should be treated as 0. Eg

{{ "test" | plus: 2 }} should output 2. LiquidJS is outputting NaN.

Similar issue with the minus filter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions