Fix ActiveRecord metrics to handle comments
!54015 (merged) moved the Marginalia comments before the actual SQL query. This commit improves the regex to discard comments.
Rubular link: https://rubular.com/r/d8Xnj7o5IxoEHP
Edited by Stan Hu
!54015 (merged) moved the Marginalia comments before the actual SQL query. This commit improves the regex to discard comments.
Rubular link: https://rubular.com/r/d8Xnj7o5IxoEHP