Skip to content

Commit e9fa6fa

Browse files
committed
Fix a typo in sanitize_as_sql_comment's comment [ci-skip]
1 parent 546ca81 commit e9fa6fa

File tree

1 file changed

+1
-1
lines changed
  • activerecord/lib/active_record/connection_adapters/abstract

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/connection_adapters/abstract/quoting.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def sanitize_as_sql_comment(value) # :nodoc:
211211
# Sanitize a string to appear within a SQL comment
212212
# For compatibility, this also surrounding "/*+", "/*", and "*/"
213213
# charcacters, possibly with single surrounding space.
214-
# Then follows that by replacing any internal "*/" or "/ *" with
214+
# Then follows that by replacing any internal "*/" or "/*" with
215215
# "* /" or "/ *"
216216
comment = value.to_s.dup
217217
comment.gsub!(%r{\A\s*/\*\+?\s?|\s?\*/\s*\Z}, "")

0 commit comments

Comments
 (0)