Compare commits

...
Author SHA1 Message Date
Josh Faigan c6ddf9bc5c ensure strict parsing everywhere 2025-09-29 09:11:54 -04:00
Josh Faigan 214bd64be1 staging branch for testing only 2025-09-26 13:14:08 -04:00
+3 -2
View File
@@ -10,14 +10,15 @@ module Liquid
raise
when :warn
parse_context.warnings << e
raise # Force strict behavior even in warn mode
end
lax_parse(markup)
raise # Force strict behavior even in lax mode
end
def parse_with_selected_parser(markup)
case parse_context.error_mode
when :strict then strict_parse_with_error_context(markup)
when :lax then lax_parse(markup)
when :lax then strict_parse_with_error_context(markup)
when :warn
begin
strict_parse_with_error_context(markup)