Skip to content

Commit

Permalink
fix: call 'split' on string-type object, not on version-type object (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Sep 14, 2023
1 parent 4870e56 commit 6e1996c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lib/dependabot/python/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def self.correct?(version)

def initialize(version)
@version_string = version.to_s
version, @local_version = version.split("+")
version, @local_version = @version_string.split("+")
version ||= ""
version = version.gsub(/^v/, "")
if version.include?("!")
Expand Down

0 comments on commit 6e1996c

Please sign in to comment.