mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
A better fix for "and"/"or" in strings
(now with less side effects)
This commit is contained in:
@@ -21,10 +21,6 @@ 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