Fix dropPoint function #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-droppoint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When I was testing the new dropPoint-function I was not seeing the expected result. Upon further inspection and debugging I found which parts I need to change to make it work.
lengthon aSlicebut there is a propertysize- Here I am not 100% sure if the change I made is correct. As far as I understand you do not want to test for a wrapping, if thesliceis empty. If that's the case,slice.sizeshould work here.ContentMatch.findWrappingtakes aNodeTypeand not aNodeThanks for spotting that! I'm confused how the code even passed my (manual, informal) testing at all with those bugs. Merged as
a6df195ba3and released as 1.1.1Pull request closed