Skip to content

Commit

Permalink
Replace use of substr
Browse files Browse the repository at this point in the history
  • Loading branch information
otacke committed Jul 8, 2024
1 parent c275a7f commit 3af54a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/h5p-crossword-cell.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 3af54a8

Please sign in to comment.