Disallow number and dash identifier prefixes

This commit is contained in:
Justin Li
2014-10-29 12:08:00 -04:00
parent a07e382617
commit dd5ee81089
4 changed files with 7 additions and 10 deletions
-8
View File
@@ -12,7 +12,6 @@ module Liquid
#
class Variable
FilterParser = /(?:\s+|#{QuotedFragment}|#{ArgumentSeparator})+/o
EasyParse = /\A *(\w+(?:\.\w+)*) *\z/
attr_accessor :filters, :name, :warnings
attr_accessor :line_number
include ParserSwitching
@@ -53,13 +52,6 @@ module Liquid
end
def strict_parse(markup)
# Very simple valid cases
if markup =~ EasyParse
@name = Expression.parse($1)
@filters = []
return
end
@filters = []
p = Parser.new(markup)