mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-20 03:10:39 -07:00
fixed conditions with strings containing "and"/"or"
This commit is contained in:
@@ -21,6 +21,10 @@ module Liquid
|
||||
def self.operators
|
||||
@@operators
|
||||
end
|
||||
|
||||
def self.operator_regexp
|
||||
Regexp.new(@@operators.keys.sort_by(&:length).reverse.map {|k| Regexp.escape(k)}.join('|'))
|
||||
end
|
||||
|
||||
attr_reader :attachment
|
||||
attr_accessor :left, :operator, :right
|
||||
|
||||
Reference in New Issue
Block a user