MOBILE-3833 h5p: Fix substring in h5p validator

main
Dani Palou 2022-02-04 14:42:16 +01:00
parent cc78598e4c
commit 0fd27feec9
1 changed files with 1 additions and 1 deletions

View File

@ -357,7 +357,7 @@ export class CoreH5PContentValidator {
}
// Remove temporary files suffix.
if (file.path.substring(-4, 4) === '#tmp') {
if (file.path.slice(-4) === '#tmp') {
file.path = file.path.substring(0, file.path.length - 4);
}