summaryrefslogtreecommitdiff
path: root/lib/chef/provider/package/yum/rpm_utils.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/package/yum/rpm_utils.rb')
-rw-r--r--lib/chef/provider/package/yum/rpm_utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/yum/rpm_utils.rb b/lib/chef/provider/package/yum/rpm_utils.rb
index b2a24abb1c..7514d57bce 100644
--- a/lib/chef/provider/package/yum/rpm_utils.rb
+++ b/lib/chef/provider/package/yum/rpm_utils.rb
@@ -46,7 +46,7 @@ class Chef
lead = 0
tail = evr.size
- if /^([\d]+):/.match(evr) # rubocop:disable Performance/RedundantMatch
+ if /^(\d+):/.match(evr) # rubocop:disable Performance/RedundantMatch
epoch = $1.to_i
lead = $1.length + 1
elsif evr[0].ord == ":".ord