Branch: refs/heads/depfu/update/srcapi/rubocop-0.88.0
Home: https://github.com/openSUSE/open-build-service
Commit: 6909ea77bad28fbb3db9cd214e359a9cfafa7e5b
https://github.com/openSUSE/open-build-service/commit/6909ea77bad28fbb3db9cd...
Author: Lukas Krause
Date: 2020-07-17 (Fri, 17 Jul 2020)
Changed paths:
M src/api/app/controllers/webui/repositories_controller.rb
Log Message:
-----------
Fix regex match group handling after moving to case statements
The rubocop autocorrect for Style/CaseLikeIf does not take into
account the match operator for regex, which in this case
returns the matched data when using it with and if/elsif statement.
After just moving this to an case statement, the data is not returned
anymore.
This could be fixed by using the `$LAST_MATCH_INFO` pseudo variable which
contains the whole `MatchData` object of the latest regex matching group.