mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-17 01:40:42 -07:00
No longer test ParseContext directly on RigidModeUnitTest as
now the `safe: true` calls are considered safe Test the entire template instead
This commit is contained in:
committed by
Guilherme Carreiro
parent
b5fbad08c6
commit
0bc69b86b7
@@ -56,8 +56,10 @@ module Liquid
|
||||
|
||||
def parse_expression(markup, safe: false)
|
||||
# todo(guilherme): remove this once rigid mode is fully using safe_parse_expression
|
||||
# raise Liquid::InternalError, "parse_expression is not supported in rigid mode" if !safe && @error_mode == :rigid
|
||||
puts("🚨 parse_expression used in rigid mode") if !safe && @error_mode == :rigid
|
||||
if !safe && @error_mode == :rigid
|
||||
# raise Liquid::InternalError, "parse_expression is not supported in rigid mode"
|
||||
puts("🚨 parse_expression used in rigid mode")
|
||||
end
|
||||
|
||||
Expression.parse(markup, @string_scanner, @expression_cache)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user