We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b9ca8a commit c92460eCopy full SHA for c92460e
docker/lib/dependabot/docker/tag.rb
@@ -66,8 +66,8 @@ def looks_like_prerelease?
66
]
67
68
# Check both the version part and the suffix part
69
- version_matches = version && prerelease_patterns.any? { |pattern| version.match?(pattern) }
70
- suffix_matches = suffix && prerelease_patterns.any? { |pattern| suffix.match?(pattern) }
+ version_matches = version && prerelease_patterns.any? { |pattern| T.must(version).match?(pattern) }
+ suffix_matches = suffix && prerelease_patterns.any? { |pattern| T.must(suffix).match?(pattern) }
71
72
!!(version_matches || suffix_matches)
73
end
0 commit comments