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:
parent
35b706bc0a
commit
bf4f871f23
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue