The bug is kind-of embarrassing. When you click the "copy" button, we run a "mapping" function on each line that determines what text should be copied.
I forgot that if a line was empty, the mapping function would retun an empty string, which is "falsy" according to the Boolean test. I really should have explicitly checked that the map function's return value is not nullish before excluding it from the copied text. 😅
Fixes #221.
The bug is kind-of embarrassing. When you click the "copy" button, we run a "mapping" function on each line that determines what text should be copied. I forgot that if a line was empty, the mapping function would retun an empty string, which is "falsy" according to the
Boolean
test. I really should have explicitly checked that the map function's return value is not nullish before excluding it from the copied text. 😅