Use VariableSignature as Syntax for Capture tag to allow hyphens in variable names

This commit is contained in:
Florian Weingarten
2015-01-09 14:15:26 +00:00
parent 4b0a7c5d1d
commit 7cfee1616a
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