Merge pull request #45012 from fatkodima/fix-sql-comments-regex

Simplify regex detecting comments in sql query
This commit is contained in:
Eileen M. Uchitelle 2022-05-03 08:49:05 -04:00 committed by GitHub
commit 3c48b4030a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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