fix parsing comment tag with extra string

This commit is contained in:
Michael Go
2023-12-12 16:23:37 -04:00
parent 0f0d5d889f
commit c618ac1c9f
2 changed files with 4 additions and 8 deletions
+1
View File
@@ -154,6 +154,7 @@ class CommentTagUnitTest < Minitest::Test
assert_template_result('', "{% comment %}123{% endcomment\txyz %}")
assert_template_result('', "{% comment %}123{% endcomment\nxyz %}")
assert_template_result('', "{% comment %}123{% endcomment\n xyz endcomment %}")
assert_template_result('', "{%comment}{% assign a = 1 %}{%endcomment}{% endif %}")
end
def test_with_whitespace_control