From 3af54a8e219505351079fdeaffbeee0d6e7a10ff Mon Sep 17 00:00:00 2001 From: Oliver Tacke Date: Mon, 8 Jul 2024 12:47:37 +0200 Subject: [PATCH] Replace use of substr --- src/scripts/h5p-crossword-cell.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/h5p-crossword-cell.js b/src/scripts/h5p-crossword-cell.js index b9cb847..dfdab2d 100644 --- a/src/scripts/h5p-crossword-cell.js +++ b/src/scripts/h5p-crossword-cell.js @@ -239,7 +239,7 @@ export default class CrosswordCell { * @returns {string} Current answer. */ getCurrentAnswer() { - return this.cell.innerText.substr(0, 1); + return this.cell.innerText.substring(0, 1); } /**