fix parsing comment tag delimiter

This commit is contained in:
Michael Go
2023-11-30 13:24:54 -04:00
parent cf2787791e
commit bf0f79f36c
2 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ module Liquid
# {% endcomment %}
# @liquid_syntax_keyword content The content of the comment.
class Comment < Block
TAG_DELIMITER = /\A(.*)#{TagStart}#{WhitespaceControl}?\s*(endcomment)\s*(.*)?#{WhitespaceControl}?#{TagEnd}\z/om
TAG_DELIMITER = /\A(.*)#{TagStart}#{WhitespaceControl}?\s*(endcomment)\s*(\s.*)?#{WhitespaceControl}?#{TagEnd}\z/om
def render_to_output_buffer(_context, output)
output