mirror of
https://github.com/kemko/liquid.git
synced 2026-01-06 18:25:41 +03:00
Disallow number and dash identifier prefixes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user