mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 01:10:41 -07:00
fix parsing comment tag delimiter with extra strings
This commit is contained in:
@@ -107,4 +107,18 @@ class CommentTagUnitTest < Minitest::Test
|
||||
|
||||
assert_equal(expected, output)
|
||||
end
|
||||
|
||||
def test_comment_tag_delimiter_with_extra_strings
|
||||
assert_template_result(
|
||||
'',
|
||||
<<~LIQUID.chomp,
|
||||
{% comment %}
|
||||
{% comment %}
|
||||
{% endcomment
|
||||
{% if true %}
|
||||
{% endif %}
|
||||
{% endcomment %}
|
||||
LIQUID
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user