selfrefactor/rambda

assocPath breaks if path includes digits

eugenezastrogin opened this issue · 3 comments

assocPath breaks if string path starts with digit.
It seems that this line is to blame.

Minimal reproducible example (comparison with correct ramda behavior included): https://stackblitz.com/edit/js-e5ro2z?file=index.js

Thank you for the report - it is a valid bug and I will try to apply a fix tomorrow and make a new release.

Fixed with 5.12.1

Properly fixed with 5.13.0 as 5.12.1 cause R.lensPath to stop working with string as path input.