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

View File

@@ -108,6 +108,8 @@ class VariableUnitTest < Minitest::Test
with_error_mode :strict do
assert_raises(Liquid::SyntaxError) { Variable.new('foo - bar') }
assert_raises(Liquid::SyntaxError) { Variable.new('-foo') }
assert_raises(Liquid::SyntaxError) { Variable.new('2foo') }
end
end