mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 10:20:43 -07:00
Fixed lax parsing test case
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
module Liquid
|
||||
class Expression
|
||||
class ComparisonExpression
|
||||
# We can improve the resiliency of lax parsing by not expecting whitespace
|
||||
# surrounding the operator (ie \s+ => \s*).
|
||||
# However this is not in parity with existing lax parsing behavior.
|
||||
COMPARISON_REGEX = /\A\s*(.+?)\s+(==|!=|<>|<=|>=|<|>|contains)\s+(.+)\s*\z/
|
||||
|
||||
class << self
|
||||
|
||||
Reference in New Issue
Block a user