Skip to content

Update slice function to allow string params for indices - #95

Open
khedaywi wants to merge 1 commit into
bettyblocks:masterfrom
khedaywi:update_slice_function
Open

Update slice function to allow string params for indices#95
khedaywi wants to merge 1 commit into
bettyblocks:masterfrom
khedaywi:update_slice_function

Conversation

@khedaywi

Copy link
Copy Markdown

Indices passed to the slice filter function from a template are sent as strings. The previous function did not convert the strings to integers, which are then passed to String.slice/3.

Passing the indices to String.slice/3 as strings resulted in nothing being returned from the call.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant