public
Rubygem
Description: Liquid markup language. Save, customer facing template language for flexible web apps.
Homepage: http://www.liquidmarkup.org
Clone URL: git://github.com/tobi/liquid.git
Click here to lend your support to: liquid and make a donation at www.pledgie.com !
Fix spelling of FilterSeparator constant.
mhw (author)
Tue Aug 12 13:51:02 -0700 2008
commit  916f501bde78de2c82144e4685977fe9b1943e59
tree    5a587f3fd654addbb8f9dd76cccd237cb0520cc3
parent  7eeb8951924fbb3692afd4c3b203082f01718372
...
22
23
24
25
 
26
27
28
...
22
23
24
 
25
26
27
28
0
@@ -22,7 +22,7 @@
0
 $LOAD_PATH.unshift(File.dirname(__FILE__))
0
 
0
 module Liquid
0
-  FilterSperator              = /\|/
0
+  FilterSeparator             = /\|/
0
   ArgumentSeparator           = ','
0
   FilterArgumentSeparator     = ':'
0
   VariableAttributeSeparator  = '.'
...
19
20
21
22
23
 
 
24
25
26
...
19
20
21
 
 
22
23
24
25
26
0
@@ -19,8 +19,8 @@ module Liquid
0
       @filters = []
0
       if match = markup.match(/\s*(#{QuotedFragment})/)
0
         @name = match[1]
0
-        if markup.match(/#{FilterSperator}\s*(.*)/)
0
-          filters = Regexp.last_match(1).split(/#{FilterSperator}/)
0
+        if markup.match(/#{FilterSeparator}\s*(.*)/)
0
+          filters = Regexp.last_match(1).split(/#{FilterSeparator}/)
0
 
0
           filters.each do |f|
0
             if matches = f.match(/\s*(\w+)/)

Comments