Skip to content

Commit 2f46159

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 7cfd50b commit 2f46159

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
@@ -26,7 +26,7 @@ def quote_column_name_or_expression(name) # :nodoc:
2626
# if only valid lowercase column characters in name
2727
when /^[a-z][a-z_0-9$#]*$/
2828
"\"#{name.upcase}\""
29-
when /^[a-z][a-z_0-9$#\-]*$/i
29+
when /^[a-z][a-z_0-9$#-]*$/i
3030
"\"#{name}\""
3131
# if other characters present then assume that it is expression
3232
# which should not be quoted

0 commit comments

Comments
 (0)