Sorry I was not able to provide a test for this fix as this happened in copyrighted EPUB which I cannot share. And honestly, I am not sure I quite understand what types of links would trigger the crash... :( But this change fixes it (it avoids calling .shift when linkparts is not an array.
Sorry I was not able to provide a test for this fix as this happened in copyrighted EPUB which I cannot share. And honestly, I am not sure I quite understand what types of links would trigger the crash... :( But this change fixes it (it avoids calling
.shift
whenlinkparts
is not an array.