Instrument for bug #1346

This commit is contained in:
Peter Zhu
2020-11-09 14:27:17 -05:00
parent c7c21e88f0
commit 2ce577e36b
2 changed files with 23 additions and 0 deletions
+3
View File
@@ -77,6 +77,9 @@ module Liquid
body.parse(tokens, parse_context) do |end_tag_name, end_tag_params|
@blank &&= body.blank?
# Instrument for bug 1346
Usage.increment("end_tag_params") if end_tag_params && !end_tag_params.empty?
return false if end_tag_name == block_delimiter
raise_tag_never_closed(block_name) unless end_tag_name