Skip to content

Commit d609d9a

Browse files
authored
Merge pull request #1028 from gautamdsheth/bugfix/1022
#1022 - fix issue with file name extension
2 parents a8473db + a1d0a5c commit d609d9a

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)