Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions go/osv/models/listedvulnerability.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ func NewListedVulnerabilityFromProto(vuln *osvschema.Vulnerability) *ListedVulne
ecosystems = append(ecosystems, normalized)
}
slices.Sort(ecosystems)
ecosystems = slices.Compact(ecosystems)

packages := make([]string, 0, len(allPackages))
for pkg := range allPackages {
Expand Down
2 changes: 1 addition & 1 deletion osv/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ def _tokenize(value):
# Deconstructs the id given into parts by retrieving parts that are
# alphanumeric.
# This addresses special cases like SUSE that include ':' in their id suffix
tokens = {token for token in re.split(r'\W+', value_lower) if token}
tokens = {token for token in re.split(r'[^a-zA-Z0-9]+', value_lower) if token}
tokens.add(value_lower)

# Add subsection combinations from id (split at '-') in the search indices
Expand Down
Loading