1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix regex for comments

This was broken by
5fb4a771d4
which deleted part of the regex - instead we only want to delete the
redundant escape.
This commit is contained in:
eileencodes 2020-12-08 16:27:05 -05:00
parent 35b706bc0a
commit bf4f871f23
No known key found for this signature in database
GPG key ID: BA5C575120BBE8DF

View file

@ -37,7 +37,7 @@ module ActiveRecord
include Savepoints
SIMPLE_INT = /\A\d+\z/
COMMENT_REGEX = %r{/\*(?:[^*]|\*[^/])*\*/}m
COMMENT_REGEX = %r{(?:--.*\n)*|/\*(?:[^*]|\*[^/])*\*/}m
attr_accessor :pool
attr_reader :visitor, :owner, :logger, :lock