Skip to content
Snippets Groups Projects
Commit 84ddc2ca authored by jojohoch's avatar jojohoch
Browse files

[player] Replace deprecated `substr()` with `substring()`

parent 26351013
No related branches found
No related tags found
No related merge requests found
......@@ -78,8 +78,8 @@ export class TextMarkingService {
const startIndex = Number(matchesArray[1]);
const endIndex = Number(matchesArray[2]);
const startMatch = TextMarkingService.createMarkingStartTag(matchesArray[3]);
newHtmlText = newHtmlText.substring(0, endIndex) + markingClosingTag + newHtmlText.substr(endIndex);
newHtmlText = newHtmlText.substring(0, startIndex) + startMatch + newHtmlText.substr(startIndex);
newHtmlText = newHtmlText.substring(0, endIndex) + markingClosingTag + newHtmlText.substring(endIndex);
newHtmlText = newHtmlText.substring(0, startIndex) + startMatch + newHtmlText.substring(startIndex);
}
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment