Skip to content

split "|" does throws error #24

Description

@amit777

Hi, we found a bug when trying to split on a | character

use Template::Liquid;

my $template = Template::Liquid->parse('{% assign fragments = foo | split: "| |" %}{% for fragment in fragments %}frag={{fragment}} {% endfor %}');

print $template->render(foo => "foo| |bar| |baz")

Have created a pull request with the fix and multiple tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions