Use Regexp#match? when MatchData is not used (#1165)

* Use `Regexp#match?` when `MatchData` is not used

* Add `TargetRubyVersion: 2.4` to RuboCop config
This commit is contained in:
Ashwin Maroli
2019-09-20 02:07:52 +10:00
committed by Mike Angell
parent ca207ed93f
commit 2c14e0b2ba
4 changed files with 4 additions and 3 deletions
+1
View File
@@ -8,6 +8,7 @@ Performance:
Enabled: true
AllCops:
TargetRubyVersion: 2.4
Exclude:
- 'vendor/bundle/**/*'