Skip to content

Commit cc2ba50

Browse files
authored
Fix issues 209 (#210)
replace fileName.IndexOf with fileName.lastIndexOf
1 parent 824e98c commit cc2ba50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Export Layers To Files (Fast).jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ function makeFileNameFromLayerName(layer, stripExt, withGroup, index) {
897897
var layerName = withGroup ? getFullGroupName(layer.layer, "") : layer.layer.name;
898898
var fileName = makeValidFileName(layerName, prefs.useDelimiter);
899899
if (stripExt) {
900-
var dotIdx = fileName.indexOf('.');
900+
var dotIdx = fileName.lastIndexOf('.');
901901
if (dotIdx >= 0) {
902902
fileName = fileName.substring(0, dotIdx);
903903
}

0 commit comments

Comments
 (0)