Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-7643

Liquid filter "Split" ignores the last element in the resulting array

    XMLWordPrintable

Details

    • False
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • +
    • +
    • Hide

      Can be reproduced with:

       {% assign s = "1,2,3,4,5" | split: "," | json %}{{ s }}

      which returns: ["1","2","3","4"]

      Show
      Can be reproduced with: {% assign s = "1,2,3,4,5" | split: "," | json %}{{ s }} which returns: ["1","2","3","4"]

    Description

      When applied to any string representation of an array of size N, the split filter ignores the last element and outputs an array of length N-1.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-sillumin Samuele Illuminati (Inactive)
            Jakub Urban Jakub Urban
            Samuele Illuminati Samuele Illuminati (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: