From 18e6d5ccf559ac795d99375a9b6944364f5e6a4e Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Mon, 16 Oct 2023 09:18:28 -0700 Subject: [PATCH] refactor: replace substr with substring --- src/utils/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/helpers.ts b/src/utils/helpers.ts index 05aa6e8be..31e97fb55 100644 --- a/src/utils/helpers.ts +++ b/src/utils/helpers.ts @@ -52,7 +52,7 @@ export function generateGitHubWebUrl( if (newUrl.indexOf('/releases/') !== -1) { newUrl = newUrl.replace('/repos', ''); - newUrl = newUrl.substr(0, newUrl.lastIndexOf('/')); + newUrl = newUrl.substring(0, newUrl.lastIndexOf('/')); } if (userId) {