Skip to content

Commit

Permalink
refactor: switch from deprecated 'substr' to 'substring'
Browse files Browse the repository at this point in the history
  • Loading branch information
gavvvr committed Oct 12, 2023
1 parent 8ae0f63 commit f6a2971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ImgurPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export default class ImgurPlugin extends Plugin {
}

private async uploadFileAndEmbedImgurImage(file: File) {
const pasteId = (Math.random() + 1).toString(36).substr(2, 5)
const pasteId = (Math.random() + 1).toString(36).substring(2, 7)
this.insertTemporaryText(pasteId)

let imgUrl: string
Expand Down

0 comments on commit f6a2971

Please sign in to comment.