Skip to content

Commit 4f48ea4

Browse files
committed
Address Style/RedundantRegexpEscape offense
``` $ bundle exec rubocop -a Inspecting 72 files ...................C.................................................... Offenses: lib/active_record/connection_adapters/oracle_enhanced/quoting.rb:29:33: C: [Corrected] Style/RedundantRegexpEscape: Redundant escape inside regexp literal when /^[a-z][a-z_0-9$#\-]*$/i ^^ 72 files inspected, 1 offense detected, 1 offense corrected $ ```
1 parent 3a99d4a commit 4f48ea4

File tree

1 file changed

+1
-1
lines changed
  • lib/active_record/connection_adapters/oracle_enhanced

1 file changed

+1
-1
lines changed

lib/active_record/connection_adapters/oracle_enhanced/quoting.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def quote_column_name_or_expression(name) # :nodoc:
2828
# if only valid lowercase column characters in name
2929
when /^[a-z][a-z_0-9$#]*$/
3030
"\"#{name.upcase}\""
31-
when /^[a-z][a-z_0-9$#\-]*$/i
31+
when /^[a-z][a-z_0-9$#-]*$/i
3232
"\"#{name}\""
3333
# if other characters present then assume that it is expression
3434
# which should not be quoted

0 commit comments

Comments
 (0)