Created
February 9, 2015 02:23
-
-
Save tyteen4a03/abb9433dded48adf270f to your computer and use it in GitHub Desktop.
Shopify slice bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span class="test1">{{ "abcde" | slice: 0, -2 }}</span> | |
<span class="test2">{{ "abcde" | slice: -2, 0 }}</span> | |
<span class="test3">{{ "abcde" | slice: 1, -2 }}</span> | |
<span class="test4">{{ "abcde" | slice: -2, 1 }}</span> | |
<span class="test5">{{ "abcde" | slice: 0, 1 }}</span> | |
<span class="test6">{{ "abcde" }}</span> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Test 1 - 3 won't output anything while test 4 - 6 will.