Skip to content

Commit

Permalink
removing //
Browse files Browse the repository at this point in the history
Signed-off-by: Benji Visser <[email protected]>
  • Loading branch information
noqcks committed Jan 9, 2024
1 parent ef6ae37 commit 636f8e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xeol/search/purl.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ func normalizeSemver(version string) string {
fourCompRe := regexp.MustCompile(`^(\d+\.\d+\.\d+)\.\w+`)
version = fourCompRe.ReplaceAllString(version, "$1")

// // Handle packages with tilde (~) characters
// // Example: 1.23.3-1~bullseye
// Handle packages with tilde (~) characters
// Example: 1.23.3-1~bullseye
tildeRe := regexp.MustCompile(`^(\d+\.\d+\.\d+)-\d+~\w+`)
return tildeRe.ReplaceAllString(version, "$1")
}
Expand Down

0 comments on commit 636f8e6

Please sign in to comment.