Don't allow - to end a variable name

This commit is contained in:
Justin Li
2014-10-17 13:38:07 -04:00
parent b4ea483c4e
commit de16db9b72

View File

@@ -77,7 +77,7 @@ module Liquid
str = consume(:id)
while consume?(:dash)
str << "-".freeze
str << consume(:id) if look(:id)
str << consume(:id)
end
if consume?(:question)
str << "?".freeze