Merge pull request #506 from Shopify/fix_capture_with_hyphen

Use VariableSignature as Syntax for Capture tag to allow hyphens in variable names
This commit is contained in:
Florian Weingarten
2015-01-23 10:37:52 -05:00
committed by Arthur Neves
parent 9faf8f9a56
commit cbc163ba1c
3 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ module Liquid
# in a sidebar or footer.
#
class Capture < Block
Syntax = /(\w+)/
Syntax = /(#{VariableSignature}+)/o
def initialize(tag_name, markup, options)
super