Thread:Extension talk:FancyBoxThumbs/Doubled dots don't get replaced

I'm using version 1.0.1 with MW 1.17.0.

There's a slight glitch with the doubled dots which stem from the splitting algorithm for 4 character file extensions in FancyBoxThumbs.php somehow don't get replaced as intended in line 69:

.' var img_src = img_src.replace("..", ".");' // change ..jpg to .jpg but do not change .jpeg

As a workaround I changed line 68 to not insert (another) dot in the first place, which seems to solve the problem but surely is not a perfect solution:

.' var img_src = img_split1[0]+img_split2[0]+""+img_type;'