From e4d894b9f30a586b1ee3cd608f75e913359b9d9a Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Sat, 25 Nov 2023 18:03:00 +0100 Subject: [PATCH] chore(node): Remove an unnecessary capturing group Signed-off-by: Sebastian Schuberth --- .../package-managers/node/src/main/kotlin/utils/NpmSupport.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/package-managers/node/src/main/kotlin/utils/NpmSupport.kt b/plugins/package-managers/node/src/main/kotlin/utils/NpmSupport.kt index f85382114c831..81f4b24b4cf6e 100644 --- a/plugins/package-managers/node/src/main/kotlin/utils/NpmSupport.kt +++ b/plugins/package-managers/node/src/main/kotlin/utils/NpmSupport.kt @@ -80,7 +80,7 @@ internal fun fixNpmDownloadUrl(downloadUrl: String): String { .replace(ARTIFACTORY_API_PATH_PATTERN, "$1/$2") } -private val ARTIFACTORY_API_PATH_PATTERN = Regex("(.*artifactory.*)(?:/api/npm/)(.*)") +private val ARTIFACTORY_API_PATH_PATTERN = Regex("(.*artifactory.*)/api/npm/(.*)") /** * Parse information about the author from the [package.json][json] file of a module. According to