Auto-corrected via: rubocop -a --only Performance/RegexpMatch ... Auto-corrections manually reviewed and verified.