Use match? instead of =~ when MatchData is not used
|Assignee:||Go MAEDA||% Done:|
String#match? was added in Ruby 2.4. you can replace
=~ with faster
Regexp#match? when MatchData generated by `=~` is not necessary.
The attached patch changes such
mach?. I generated the patch with the following commands.
sed -i '' 's/TargetRubyVersion: 2.3/TargetRubyVersion: 2.4/' .rubocop.yml bundle exec rubocop --only Performance/RegexpMatch -a