A better fix for "and"/"or" in strings

(now with less side effects)
This commit is contained in:
James MacAulay
2009-09-23 15:44:29 -04:00
parent f42ce88456
commit 11dc18bfdf
4 changed files with 22 additions and 15 deletions
-4
View File
@@ -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