forked from EVOgeek/Vmeda.Online
MOBILE-3833 h5p: Fix substring in h5p validator
parent
cc78598e4c
commit
0fd27feec9
|
@ -357,7 +357,7 @@ export class CoreH5PContentValidator {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove temporary files suffix.
|
// 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);
|
file.path = file.path.substring(0, file.path.length - 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue