mirror of https://github.com/rails/rails
Merge pull request #45012 from fatkodima/fix-sql-comments-regex
Simplify regex detecting comments in sql query
This commit is contained in:
commit
3c48b4030a
|
@ -36,7 +36,7 @@ module ActiveRecord
|
|||
include Savepoints
|
||||
|
||||
SIMPLE_INT = /\A\d+\z/
|
||||
COMMENT_REGEX = %r{(?:--.*\n)*|/\*(?:[^*]|\*[^/])*\*/}m
|
||||
COMMENT_REGEX = %r{(?:--.*\n)|/\*(?:[^*]|\*[^/])*\*/}m
|
||||
|
||||
attr_accessor :pool
|
||||
attr_reader :visitor, :owner, :logger, :lock
|
||||
|
|
Loading…
Reference in New Issue