Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
d5e208f
Merge pull request #5613 from dependabot/revert-5542-nishnha/npm-help…
Nishnha Sep 1, 2022
0b29021
To prevent dependabot-core from failing when the incorrect release ta…
honeyankit Sep 1, 2022
2ff1b51
Merge branch 'fix-pip-faiure-rate' of https://github.com/dependabot/d…
honeyankit Sep 1, 2022
d2ec315
fixing Style/RedundantReturn: Redundant return detected
honeyankit Sep 2, 2022
a90febb
Removing extra whitespaces at the beginning of the file
honeyankit Sep 2, 2022
c65b446
fixing Layout/EmptyLinesAroundExceptionHandlingKeywords
honeyankit Sep 2, 2022
a01bb34
Merge branch 'main' into fix-pip-faiure-rate
honeyankit Sep 2, 2022
250c995
Fixed regex to validate correct python version release tag
honeyankit Sep 2, 2022
df9ddf3
Merge branch 'fix-pip-faiure-rate' of https://github.com/dependabot/d…
honeyankit Sep 2, 2022
d1597e0
Merge branch 'main' into fix-pip-faiure-rate
honeyankit Sep 2, 2022
114ff2e
Added test case to validate two dashes release version
honeyankit Sep 2, 2022
6a6e5be
Merge branch 'fix-pip-faiure-rate' of https://github.com/dependabot/d…
honeyankit Sep 2, 2022
5bac3a1
Fixed error add empty line after guard clause
honeyankit Sep 2, 2022
1db6a8d
Merge branch 'main' into fix-pip-faiure-rate
honeyankit Sep 6, 2022
6084e32
Merge branch 'main' into fix-pip-faiure-rate
honeyankit Sep 6, 2022
2402aa4
Merge branch 'main' into fix-pip-faiure-rate
honeyankit Sep 6, 2022
4ac058d
Merge branch 'main' into fix-pip-faiure-rate
honeyankit Sep 7, 2022
d541dc0
Merge branch 'main' into fix-pip-faiure-rate
honeyankit Sep 7, 2022
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
2 changes: 1 addition & 1 deletion python/lib/dependabot/python/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Version < Gem::Version

# See https://peps.python.org/pep-0440/#appendix-b-parsing-version-strings-with-regular-expressions
VERSION_PATTERN = 'v?([1-9][0-9]*!)?[0-9]+[0-9a-zA-Z]*(?>\.[0-9a-zA-Z]+)*' \
'(-[0-9A-Za-z-]+(\.[0-9a-zA-Z-]+)*)?' \
'(-[0-9A-Za-z]+(\.[0-9a-zA-Z]+)*)?' \
'(\+[0-9a-zA-Z]+(\.[0-9a-zA-Z]+)*)?'
ANCHORED_VERSION_PATTERN = /\A\s*(#{VERSION_PATTERN})?\s*\z/.freeze

Expand Down
5 changes: 5 additions & 0 deletions python/spec/dependabot/python/version_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
let(:version_string) { "1.0.0+abc 123" }
it { is_expected.to eq(false) }
end

context "that includes two dashes" do
let(:version_string) { "v1.8.0--failed-release-attempt" }
it { is_expected.to eq(false) }
end
end
end

Expand Down