Skip to content

Commit

Permalink
Merge pull request #45012 from fatkodima/fix-sql-comments-regex
Browse files Browse the repository at this point in the history
Simplify regex detecting comments in sql query
  • Loading branch information
eileencodes committed May 3, 2022
2 parents dce43bb + f63a347 commit 3c48b40
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -36,7 +36,7 @@ class AbstractAdapter
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
Expand Down

0 comments on commit 3c48b40

Please sign in to comment.