Skip to content

Commit a1d0a5c

Browse files
committed
#1022 - fix issue with file name extension
1 parent 8242c7a commit a1d0a5c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/common/utilities/GeneralHelper.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,7 @@ export class GeneralHelper {
266266
*/
267267
public static getFileNameWithoutExtension(itemUrl : string) {
268268
const fileNameWithExtension = GeneralHelper.getFileNameFromUrl(itemUrl);
269-
const fileNameTokens = fileNameWithExtension.split(".");
270-
const fileName = fileNameTokens[0];
271-
269+
const fileName = fileNameWithExtension.substr(0, fileNameWithExtension.lastIndexOf('.'));
272270
return fileName;
273271
}
274272

0 commit comments

Comments
 (0)