I was looking for a neat function to check size of a selection. Then remembered your scripts and started testing the SVG-exporter.
I noticed in the beginning it checks artboard names and see if they end with SVG. After testing this and adding .svg to a artboard. Nothing happens, actually the .svg part is stripped. If i understand that if statement correct. It checks if its equal to svg, yet that part is stripped and zero indices are returned here