We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a8473db + a1d0a5c commit d609d9aCopy full SHA for d609d9a
src/common/utilities/GeneralHelper.ts
@@ -266,9 +266,7 @@ export class GeneralHelper {
266
*/
267
public static getFileNameWithoutExtension(itemUrl : string) {
268
const fileNameWithExtension = GeneralHelper.getFileNameFromUrl(itemUrl);
269
- const fileNameTokens = fileNameWithExtension.split(".");
270
- const fileName = fileNameTokens[0];
271
-
+ const fileName = fileNameWithExtension.substr(0, fileNameWithExtension.lastIndexOf('.'));
272
return fileName;
273
}
274
0 commit comments