lib/dependabot/composer/update_checker/requirements_updater.rb in dependabot-composer-0.125.0 vs lib/dependabot/composer/update_checker/requirements_updater.rb in dependabot-composer-0.125.1

- old
+ new

@@ -142,12 +142,10 @@ end def update_version_string(req_string) req_string. sub(VERSION_REGEX) do |old_version| - unless req_string.match?(/[~*\^]/) - next latest_resolvable_version.to_s - end + next latest_resolvable_version.to_s unless req_string.match?(/[~*\^]/) old_parts = old_version.split(".") new_parts = latest_resolvable_version.to_s.split("."). first(old_parts.count) new_parts.map.with_index do |part, i|