Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

array.first and array.last notation does not work #175

Closed
robinbijlani opened this issue Nov 15, 2019 · 1 comment
Closed

array.first and array.last notation does not work #175

robinbijlani opened this issue Nov 15, 2019 · 1 comment

Comments

@robinbijlani
Copy link
Contributor

According to Shopify's documentation, both of these syntaxes should display the first item from an array:

{{ array.first }}
{{ array | first }}

Reference: https://shopify.github.io/liquid/filters/first/

liquidjs supports the pipe notation as expected, but not the dot notation (array.first, array.last).

Here is a fiddle: https://jsfiddle.net/v57rmeb9/

@harttle harttle added the bug label Nov 15, 2019
harttle pushed a commit that referenced this issue Nov 15, 2019
## [9.4.2](v9.4.1...v9.4.2) (2019-11-15)

### Bug Fixes

* reading .first, .last of Array, closes [#175](#175) ([f82da11](f82da11))
@harttle
Copy link
Owner

harttle commented Nov 15, 2019

🎉 This issue has been resolved in version 9.4.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants