Skip to content

Commit

Permalink
chore(node): Remove an unnecessary capturing group
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Nov 28, 2023
1 parent 18f9318 commit e4d894b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e4d894b

Please sign in to comment.