Skip to content

Commit 1f01aca

Browse files
author
jordanbreen28
committed
(CONT-776) - Correct Style/RedundantRegexpCharacterClass
1 parent 4819485 commit 1f01aca

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -164,18 +164,6 @@ RSpec/StubbedMock:
164164
Exclude:
165165
- 'spec/unit/lib/facter/docker_spec.rb'
166166

167-
# Offense count: 1
168-
# This cop supports safe autocorrection (--autocorrect).
169-
Style/RedundantConditional:
170-
Exclude:
171-
- 'spec/helper/get_defaults.rb'
172-
173-
# Offense count: 2
174-
# This cop supports safe autocorrection (--autocorrect).
175-
Style/RedundantRegexpCharacterClass:
176-
Exclude:
177-
- 'spec/classes/compose_spec.rb'
178-
179167
# Offense count: 42
180168
# This cop supports safe autocorrection (--autocorrect).
181169
Style/RedundantRegexpEscape:

spec/classes/compose_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
end
7575

7676
if params['proxy'] != :undef
77-
unless %r{^((http[s]?)?:\/\/)?([^:^@]+:[^:^@]+@|)([\da-z\.-]+)\.([\da-z\.]{2,6})(:[\d])?([\/\w \.-]*)*\/?$}.match?(params['proxy'])
77+
unless %r{^((https?)?:\/\/)?([^:^@]+:[^:^@]+@|)([\da-z\.-]+)\.([\da-z\.]{2,6})(:\d)?([\/\w \.-]*)*\/?$}.match?(params['proxy'])
7878
it {
7979
expect(subject).to compile.and_raise_error(%r{does not match})
8080
}

0 commit comments

Comments
 (0)