somesocks / lua-lockbox

A collection of cryptographic primitives written in pure Lua
MIT License
357 stars 74 forks source link

Add support for array slicing with negative index #39

Closed blueyetisoftware-jason closed 7 months ago

blueyetisoftware-jason commented 1 year ago

Add to the array slicing implementation so that is can support negative indexes. The semantics match string.sub

blueyetisoftware-jason commented 1 year ago

@somesocks Any interest in this PR? I makes the slicing semantics match lua strings

somesocks commented 7 months ago

@blueyetisoftware-jason sorry for the delay. I wanted to spend a little more time reviewing this one, but ran out of time. :+1: from me.